mirror of https://gitlab.com/bashrc2/epicyon
Avoid function calls
parent
3de5469cf4
commit
a26a50a939
|
@ -1813,10 +1813,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
getPersonFromCache(baseDir,postJsonObject['object']['attributedTo'],personCache)
|
getPersonFromCache(baseDir,postJsonObject['object']['attributedTo'],personCache)
|
||||||
announceDisplayName=getDisplayName(baseDir,postJsonObject['object']['attributedTo'],personCache)
|
announceDisplayName=getDisplayName(baseDir,postJsonObject['object']['attributedTo'],personCache)
|
||||||
if announceDisplayName:
|
if announceDisplayName:
|
||||||
announceDisplayName= \
|
if ':' in announceDisplayName:
|
||||||
addEmojiToDisplayName(baseDir,httpPrefix, \
|
announceDisplayName= \
|
||||||
nickname,domain, \
|
addEmojiToDisplayName(baseDir,httpPrefix, \
|
||||||
announceDisplayName,False)
|
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']
|
||||||
|
@ -1851,10 +1852,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
getPersonFromCache(baseDir,replyActor,personCache)
|
getPersonFromCache(baseDir,replyActor,personCache)
|
||||||
replyDisplayName=getDisplayName(baseDir,replyActor,personCache)
|
replyDisplayName=getDisplayName(baseDir,replyActor,personCache)
|
||||||
if replyDisplayName:
|
if replyDisplayName:
|
||||||
replyDisplayName= \
|
if ':' in replyDisplayName:
|
||||||
addEmojiToDisplayName(baseDir,httpPrefix, \
|
replyDisplayName= \
|
||||||
nickname,domain, \
|
addEmojiToDisplayName(baseDir,httpPrefix, \
|
||||||
replyDisplayName,False)
|
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