forked from indymedia/epicyon
Show announce avatar
parent
6b3e6258ca
commit
6dc55a1988
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue