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']+'">' \
' <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 messageId:
avatarDropdown= \
' <div class="dropdown-timeline">' \
' <a href="/users/'+nickname+'?options='+postJsonObject['actor']+';'+avatarUrl+';'+messageId+'">' \
' <img title="Show options for this person" src="'+avatarUrl+'" '+avatarPosition+'/></a>' \
' </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>'
avatarDropdown= \
' <div class="dropdown-timeline">' \
' <a href="/users/'+nickname+'?options='+postJsonObject['actor']+';'+avatarUrl+messageIdStr+'">' \
' <img title="Show options for this person" src="'+avatarUrl+'" '+avatarPosition+'/></a>' \
' </div>'
publishedStr=postJsonObject['object']['published']
if '.' not in publishedStr: