Show announce avatar

main2
Bob Mottram 2019-09-24 12:59:42 +01:00
parent 6b3e6258ca
commit 6dc55a1988
1 changed files with 10 additions and 0 deletions

View File

@ -1799,6 +1799,16 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
announceDisplayName=getDisplayName(postJsonObject['object']['attributedTo'],personCache)
if announceDisplayName:
titleStr+=' <img src="/'+iconsDir+'/repeat_inactive.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['id']+'">'+announceDisplayName+'</a>'
# show avatar of person replied to
announceActor=postJsonObject['object']['attributedTo']
announceAvatarUrl=getPersonAvatarUrl(baseDir,announceActor,personCache)
if announceAvatarUrl:
replyAvatarImageInPost= \
'<div class="timeline-avatar-reply">' \
'<a href="'+announceActor+'">' \
'<img src="'+announceAvatarUrl+'" ' \
'title="'+translate['Show profile']+ \
'" alt="Avatar"'+avatarPosition+'/></a></div>'
else:
titleStr+=' <img src="/'+iconsDir+'/repeat_inactive.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['id']+'">@'+announceNickname+'@'+announceDomain+'</a>'
else: