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)
|
announceDisplayName=getDisplayName(postJsonObject['object']['attributedTo'],personCache)
|
||||||
if announceDisplayName:
|
if announceDisplayName:
|
||||||
titleStr+=' <img src="/'+iconsDir+'/repeat_inactive.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['id']+'">'+announceDisplayName+'</a>'
|
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:
|
else:
|
||||||
titleStr+=' <img src="/'+iconsDir+'/repeat_inactive.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['id']+'">@'+announceNickname+'@'+announceDomain+'</a>'
|
titleStr+=' <img src="/'+iconsDir+'/repeat_inactive.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['id']+'">@'+announceNickname+'@'+announceDomain+'</a>'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue