Fix missing webfingers

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

View File

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