diff --git a/epicyon.py b/epicyon.py index 467a6bbb..a2f305b8 100644 --- a/epicyon.py +++ b/epicyon.py @@ -1019,7 +1019,7 @@ if args.actor: sys.exit() nickname = args.actor.split('@')[0] domain = args.actor.split('@')[1].replace('\n', '') - wfCache = {} + cachedWebfingers = {} if args.http or domain.endswith('.onion'): httpPrefix = 'http' port = 80 @@ -1032,7 +1032,7 @@ if args.actor: nickname = domain wfRequest = webfingerHandle(session, nickname + '@' + domain, - httpPrefix, wfCache, + httpPrefix, cachedWebfingers, None, __version__) if not wfRequest: print('Unable to webfinger ' + nickname + '@' + domain) diff --git a/webinterface.py b/webinterface.py index d578061f..658f9ab0 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5792,7 +5792,7 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int, baseDir: str, path: str, httpPrefix: str, nickname: str, domain: str, port: int, profileHandle: str, - session, wfRequest: {}, personCache: {}, + session, cachedWebfingers: {}, personCache: {}, debug: bool, projectVersion: str) -> str: """Show a profile page after a search for a fediverse address """ @@ -5841,12 +5841,12 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int, wf = \ webfingerHandle(session, searchNickname + '@' + searchDomainFull, - httpPrefix, wfRequest, - domain, projectVersion) + httpPrefix, cachedWebfingers, + None, projectVersion) if not wf: print('DEBUG: Unable to webfinger ' + searchNickname + '@' + searchDomainFull) - print('DEBUG: wfRequest ' + str(wfRequest)) + print('DEBUG: cachedWebfingers ' + str(cachedWebfingers)) print('DEBUG: httpPrefix ' + httpPrefix) print('DEBUG: domain ' + domain) return None @@ -5979,7 +5979,7 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int, profileStr += \ individualPostAsHtml(recentPostsCache, maxRecentPosts, iconsDir, translate, None, baseDir, - session, wfRequest, personCache, + session, cachedWebfingers, personCache, nickname, domain, port, item, avatarUrl, False, False, httpPrefix, projectVersion, 'inbox',