Lookup webfinger

merge-requests/8/head
Bob Mottram 2021-01-09 22:58:34 +00:00
parent 207d9febe8
commit 2d64dd2dc6
1 changed files with 10 additions and 1 deletions

View File

@ -1153,10 +1153,19 @@ def individualPostAsHtml(allowDownloads: bool,
# get the display name
if domainFull not in postActor:
# lookup the correct webfinger for the postActor
postActorNickname = getNicknameFromActor(postActor)
postActorDomain, postActorPort = getNicknameFromActor(postActor)
postActorDomainFull = getFullDomain(postActorDomain, postActorPort)
postActorHandle = postActorNickname + '@' + postActorDomainFull
postActorWf = cachedWebfingers
if cachedWebfingers.get(postActorHandle):
postActorWf = cachedWebfingers[postActorHandle]
(inboxUrl, pubKeyId, pubKey,
fromPersonId, sharedInbox,
avatarUrl2, displayName) = getPersonBox(baseDir, session,
cachedWebfingers,
postActorWf,
personCache,
projectVersion, httpPrefix,
nickname, domain, 'outbox',