mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 02:15:12 +00:00
Tidying
This commit is contained in:
1 parent
f7c84beb2c
commit
c807dc075c
2 files changed
+12
-2
No files matched your search
+11
-1
@@ -1530,10 +1530,20 @@ def _individualFollowAsHtml(translate: {},
|
||||
if not avatarUrl:
|
||||
avatarUrl = followUrl + '/avatar.png'
|
||||
if domain not in followUrl:
|
||||
# lookup the correct webfinger for the followUrl
|
||||
followUrlNickname = getNicknameFromActor(followUrl)
|
||||
followUrlDomain, followUrlPort = getDomainFromActor(followUrl)
|
||||
followUrlDomainFull = getFullDomain(followUrlDomain, followUrlPort)
|
||||
followUrlHandle = followUrlNickname + '@' + followUrlDomainFull
|
||||
followUrlWf = \
|
||||
webfingerHandle(session, followUrlHandle, httpPrefix,
|
||||
cachedWebfingers,
|
||||
domain, __version__)
|
||||
|
||||
(inboxUrl, pubKeyId, pubKey,
|
||||
fromPersonId, sharedInbox,
|
||||
avatarUrl2, displayName) = getPersonBox(baseDir, session,
|
||||
cachedWebfingers,
|
||||
followUrlWf,
|
||||
personCache, projectVersion,
|
||||
httpPrefix, nickname,
|
||||
domain, 'outbox', 43036)
|
||||
|
||||
+1
-1
@@ -352,4 +352,4 @@ def webfingerUpdate(baseDir: str, nickname: str, domain: str,
|
||||
|
||||
if _webfingerUpdateFromProfile(wfJson, actorJson):
|
||||
if saveJson(wfJson, filename):
|
||||
cachedWebfingers[handle] = wfJson
|
||||
storeWebfingerInCache(handle, wfJson, cachedWebfingers)
|
||||
Reference in new issue
Block a user