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,17 +1230,14 @@ def individualPostAsHtml(baseDir: str, \
' <a href="'+postJsonObject['actor']+'">' \
' <img src="'+avatarUrl+'" title="Show profile" alt="Avatar"'+avatarPosition+'/></a>'
if showAvatarDropdown and fullDomain+'/users/'+nickname not in postJsonObject['actor']:
messageIdStr=''
if messageId:
messageIdStr=';'+messageId
if showAvatarDropdown and fullDomain+'/users/'+nickname not in postJsonObject['actor']:
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+'">' \
' <a href="/users/'+nickname+'?options='+postJsonObject['actor']+';'+avatarUrl+messageIdStr+'">' \
' <img title="Show options for this person" src="'+avatarUrl+'" '+avatarPosition+'/></a>' \
' </div>'