Fix missing webfingers

main
Bob Mottram 2020-12-31 11:08:08 +00:00
parent 9efecfc28e
commit 4bee4e236a
2 changed files with 11 additions and 4 deletions

View File

@ -72,6 +72,7 @@ from happening import saveEventPost
from delete import removeOldHashtags
from follow import isFollowingActor
from categories import guessHashtagCategory
from webfinger import webfingerHandle
def storeHashTags(baseDir: str, nickname: str, postJsonObject: {}) -> None:
@ -162,8 +163,11 @@ def _inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
if cachedWebfingers.get(requestHandle):
wfRequest = cachedWebfingers[requestHandle]
else:
# TODO this may not be correct
wfRequest = cachedWebfingers
wfRequest = webfingerHandle(session, requestHandle,
httpPrefix, cachedWebfingers,
domain, __version__)
if not wfRequest:
return
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
translate, pageNumber,

View File

@ -265,8 +265,11 @@ def htmlProfileAfterSearch(cssCache: {},
if cachedWebfingers.get(requestHandle):
wfRequest = cachedWebfingers[requestHandle]
else:
# TODO this may not be correct
wfRequest = cachedWebfingers
wfRequest = webfingerHandle(session, requestHandle,
httpPrefix, cachedWebfingers,
domain, __version__)
if not wfRequest:
return None
profileStr += \
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,