Revert "Fix missing webfingers"

This reverts commit 4bee4e236a.
main
Bob Mottram 2020-12-31 12:14:47 +00:00
parent 4bee4e236a
commit 0d0d49ac89
2 changed files with 4 additions and 11 deletions

View File

@ -72,7 +72,6 @@ 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:
@ -163,11 +162,8 @@ def _inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
if cachedWebfingers.get(requestHandle):
wfRequest = cachedWebfingers[requestHandle]
else:
wfRequest = webfingerHandle(session, requestHandle,
httpPrefix, cachedWebfingers,
domain, __version__)
if not wfRequest:
return
# TODO this may not be correct
wfRequest = cachedWebfingers
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
translate, pageNumber,

View File

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