forked from indymedia/epicyon
No domain
parent
15c6953d08
commit
f2fc17c4ca
|
@ -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)
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue