Single webfinger

alt-html-css
Bob Mottram 2020-12-18 18:12:33 +00:00
parent af919974d7
commit 8c7071b6e3
2 changed files with 18 additions and 2 deletions

View File

@ -173,9 +173,17 @@ def inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
avatarUrl = None
if boxname != 'tlevents' and boxname != 'outbox':
boxname = 'inbox'
wfRequest = {}
requestHandle = nickname + '@' + domain
if cachedWebfingers.get(requestHandle):
wfRequest = cachedWebfingers[requestHandle]
elif cachedWebfingers.get(requestHandle + ':' + str(port)):
wfRequest = cachedWebfingers[requestHandle + ':' + str(port)]
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
translate, pageNumber,
baseDir, session, cachedWebfingers, personCache,
baseDir, session, wfRequest, personCache,
nickname, domain, port, postJsonObject,
avatarUrl, True, allowDeletion,
httpPrefix, __version__, boxname, None,

View File

@ -259,10 +259,18 @@ def htmlProfileAfterSearch(cssCache: {},
continue
if not item.get('object'):
continue
wfRequest = {}
requestHandle = nickname + '@' + domain
if cachedWebfingers.get(requestHandle):
wfRequest = cachedWebfingers[requestHandle]
elif cachedWebfingers.get(requestHandle + ':' + str(port)):
wfRequest = cachedWebfingers[requestHandle + ':' + str(port)]
profileStr += \
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
translate, None, baseDir,
session, cachedWebfingers, personCache,
session, wfRequest, personCache,
nickname, domain, port,
item, avatarUrl, False, False,
httpPrefix, projectVersion, 'inbox',