Getting actors from cache

main2
Bob Mottram 2019-10-09 14:44:01 +01:00
parent 2d3c826eb4
commit f7cc9a48ff
1 changed files with 2 additions and 0 deletions

View File

@ -1731,6 +1731,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
if announceNickname:
announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
getPersonFromCache(baseDir,postJsonObject['object']['attributedTo'],personCache)
announceDisplayName=getDisplayName(baseDir,postJsonObject['object']['attributedTo'],personCache)
if announceDisplayName:
announceDisplayName= \
@ -1768,6 +1769,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
if replyNickname:
replyDomain,replyPort=getDomainFromActor(replyActor)
if replyNickname and replyDomain:
getPersonFromCache(baseDir,replyActor,personCache)
replyDisplayName=getDisplayName(baseDir,replyActor,personCache)
if replyDisplayName:
replyDisplayName= \