mirror of https://gitlab.com/bashrc2/epicyon
Add emoji to display names
parent
4614fa426c
commit
aa6809ea92
|
@ -1709,6 +1709,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
|
announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
|
||||||
announceDisplayName=getDisplayName(postJsonObject['object']['attributedTo'],personCache)
|
announceDisplayName=getDisplayName(postJsonObject['object']['attributedTo'],personCache)
|
||||||
if announceDisplayName:
|
if announceDisplayName:
|
||||||
|
announceDisplayName= \
|
||||||
|
addEmojiToDisplayName(baseDir,httpPrefix, \
|
||||||
|
nickname,domain, \
|
||||||
|
announceDisplayName,False)
|
||||||
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
|
# show avatar of person replied to
|
||||||
announceActor=postJsonObject['object']['attributedTo']
|
announceActor=postJsonObject['object']['attributedTo']
|
||||||
|
@ -1741,6 +1745,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
if replyNickname and replyDomain:
|
if replyNickname and replyDomain:
|
||||||
replyDisplayName=getDisplayName(postJsonObject['object']['inReplyTo'],personCache)
|
replyDisplayName=getDisplayName(postJsonObject['object']['inReplyTo'],personCache)
|
||||||
if replyDisplayName:
|
if replyDisplayName:
|
||||||
|
replyDisplayName= \
|
||||||
|
addEmojiToDisplayName(baseDir,httpPrefix, \
|
||||||
|
nickname,domain, \
|
||||||
|
replyDisplayName,False)
|
||||||
titleStr+=' <img src="/'+iconsDir+'/reply.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['inReplyTo']+'">'+replyDisplayName+'</a>'
|
titleStr+=' <img src="/'+iconsDir+'/reply.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['inReplyTo']+'">'+replyDisplayName+'</a>'
|
||||||
|
|
||||||
# show avatar of person replied to
|
# show avatar of person replied to
|
||||||
|
|
Loading…
Reference in New Issue