master
Bob Mottram 2019-08-25 10:25:24 +01:00
parent ab0ff77f0d
commit e1d45bb1c4
1 changed files with 9 additions and 12 deletions

View File

@ -1230,19 +1230,16 @@ def individualPostAsHtml(baseDir: str, \
' <a href="'+postJsonObject['actor']+'">' \ ' <a href="'+postJsonObject['actor']+'">' \
' <img src="'+avatarUrl+'" title="Show profile" alt="Avatar"'+avatarPosition+'/></a>' ' <img src="'+avatarUrl+'" title="Show profile" alt="Avatar"'+avatarPosition+'/></a>'
messageIdStr=''
if messageId:
messageIdStr=';'+messageId
if showAvatarDropdown and fullDomain+'/users/'+nickname not in postJsonObject['actor']: if showAvatarDropdown and fullDomain+'/users/'+nickname not in postJsonObject['actor']:
if messageId: avatarDropdown= \
avatarDropdown= \ ' <div class="dropdown-timeline">' \
' <div class="dropdown-timeline">' \ ' <a href="/users/'+nickname+'?options='+postJsonObject['actor']+';'+avatarUrl+messageIdStr+'">' \
' <a href="/users/'+nickname+'?options='+postJsonObject['actor']+';'+avatarUrl+';'+messageId+'">' \ ' <img title="Show options for this person" src="'+avatarUrl+'" '+avatarPosition+'/></a>' \
' <img title="Show options for this person" src="'+avatarUrl+'" '+avatarPosition+'/></a>' \ ' </div>'
' </div>'
else:
avatarDropdown= \
' <div class="dropdown-timeline">' \
' <a href="/users/'+nickname+'?options='+postJsonObject['actor']+';'+avatarUrl+'">' \
' <img title="Show options for this person" src="'+avatarUrl+'" '+avatarPosition+'/></a>' \
' </div>'
publishedStr=postJsonObject['object']['published'] publishedStr=postJsonObject['object']['published']
if '.' not in publishedStr: if '.' not in publishedStr: