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) getPersonFromCache(baseDir,postJsonObject['object']['attributedTo'],personCache)
announceDisplayName=getDisplayName(baseDir,postJsonObject['object']['attributedTo'],personCache) announceDisplayName=getDisplayName(baseDir,postJsonObject['object']['attributedTo'],personCache)
if announceDisplayName: if announceDisplayName:
if ':' in announceDisplayName:
announceDisplayName= \ announceDisplayName= \
addEmojiToDisplayName(baseDir,httpPrefix, \ addEmojiToDisplayName(baseDir,httpPrefix, \
nickname,domain, \ nickname,domain, \
@ -1851,6 +1852,7 @@ 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:
if ':' in replyDisplayName:
replyDisplayName= \ replyDisplayName= \
addEmojiToDisplayName(baseDir,httpPrefix, \ addEmojiToDisplayName(baseDir,httpPrefix, \
nickname,domain, \ nickname,domain, \