forked from indymedia/epicyon
Single webfinger
parent
af919974d7
commit
8c7071b6e3
10
inbox.py
10
inbox.py
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue