mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-03 03:02:13 +00:00
Lookup webfinger
This commit is contained in:
1 parent
207d9febe8
commit
2d64dd2dc6
1 file changed
+10
-1
+10
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user