mirror of https://gitlab.com/bashrc2/epicyon
Single webfinger
parent
af919974d7
commit
8c7071b6e3
10
inbox.py
10
inbox.py
|
@ -173,9 +173,17 @@ def inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
avatarUrl = None
|
avatarUrl = None
|
||||||
if boxname != 'tlevents' and boxname != 'outbox':
|
if boxname != 'tlevents' and boxname != 'outbox':
|
||||||
boxname = 'inbox'
|
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,
|
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
|
||||||
translate, pageNumber,
|
translate, pageNumber,
|
||||||
baseDir, session, cachedWebfingers, personCache,
|
baseDir, session, wfRequest, personCache,
|
||||||
nickname, domain, port, postJsonObject,
|
nickname, domain, port, postJsonObject,
|
||||||
avatarUrl, True, allowDeletion,
|
avatarUrl, True, allowDeletion,
|
||||||
httpPrefix, __version__, boxname, None,
|
httpPrefix, __version__, boxname, None,
|
||||||
|
|
|
@ -259,10 +259,18 @@ def htmlProfileAfterSearch(cssCache: {},
|
||||||
continue
|
continue
|
||||||
if not item.get('object'):
|
if not item.get('object'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
wfRequest = {}
|
||||||
|
requestHandle = nickname + '@' + domain
|
||||||
|
if cachedWebfingers.get(requestHandle):
|
||||||
|
wfRequest = cachedWebfingers[requestHandle]
|
||||||
|
elif cachedWebfingers.get(requestHandle + ':' + str(port)):
|
||||||
|
wfRequest = cachedWebfingers[requestHandle + ':' + str(port)]
|
||||||
|
|
||||||
profileStr += \
|
profileStr += \
|
||||||
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
|
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
|
||||||
translate, None, baseDir,
|
translate, None, baseDir,
|
||||||
session, cachedWebfingers, personCache,
|
session, wfRequest, personCache,
|
||||||
nickname, domain, port,
|
nickname, domain, port,
|
||||||
item, avatarUrl, False, False,
|
item, avatarUrl, False, False,
|
||||||
httpPrefix, projectVersion, 'inbox',
|
httpPrefix, projectVersion, 'inbox',
|
||||||
|
|
Loading…
Reference in New Issue