Avoid function calls

main2
Bob Mottram 2019-10-18 13:55:53 +01:00
parent 3de5469cf4
commit a26a50a939
1 changed files with 10 additions and 8 deletions

View File

@ -1813,6 +1813,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
getPersonFromCache(baseDir,postJsonObject['object']['attributedTo'],personCache)
announceDisplayName=getDisplayName(baseDir,postJsonObject['object']['attributedTo'],personCache)
if announceDisplayName:
if ':' in announceDisplayName:
announceDisplayName= \
addEmojiToDisplayName(baseDir,httpPrefix, \
nickname,domain, \
@ -1851,6 +1852,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
getPersonFromCache(baseDir,replyActor,personCache)
replyDisplayName=getDisplayName(baseDir,replyActor,personCache)
if replyDisplayName:
if ':' in replyDisplayName:
replyDisplayName= \
addEmojiToDisplayName(baseDir,httpPrefix, \
nickname,domain, \