mirror of https://gitlab.com/bashrc2/epicyon
webfinger debug
parent
a1873e42b6
commit
d772d495df
|
@ -5804,13 +5804,11 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
searchDomain, searchPort = getDomainFromActor(profileHandle)
|
searchDomain, searchPort = getDomainFromActor(profileHandle)
|
||||||
else:
|
else:
|
||||||
if '@' not in profileHandle:
|
if '@' not in profileHandle:
|
||||||
if debug:
|
|
||||||
print('DEBUG: no @ in ' + profileHandle)
|
print('DEBUG: no @ in ' + profileHandle)
|
||||||
return None
|
return None
|
||||||
if profileHandle.startswith('@'):
|
if profileHandle.startswith('@'):
|
||||||
profileHandle = profileHandle[1:]
|
profileHandle = profileHandle[1:]
|
||||||
if '@' not in profileHandle:
|
if '@' not in profileHandle:
|
||||||
if debug:
|
|
||||||
print('DEBUG: no @ in ' + profileHandle)
|
print('DEBUG: no @ in ' + profileHandle)
|
||||||
return None
|
return None
|
||||||
searchNickname = profileHandle.split('@')[0]
|
searchNickname = profileHandle.split('@')[0]
|
||||||
|
@ -5821,14 +5819,14 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
if searchPortStr.isdigit():
|
if searchPortStr.isdigit():
|
||||||
searchPort = int(searchPortStr)
|
searchPort = int(searchPortStr)
|
||||||
searchDomain = searchDomain.split(':')[0]
|
searchDomain = searchDomain.split(':')[0]
|
||||||
|
print('DEBUG: Search for handle ' + searchNickname + '@' searchDomain + ':' + str(searchPort))
|
||||||
if not searchNickname:
|
if not searchNickname:
|
||||||
if debug:
|
|
||||||
print('DEBUG: No nickname found in ' + profileHandle)
|
print('DEBUG: No nickname found in ' + profileHandle)
|
||||||
return None
|
return None
|
||||||
if not searchDomain:
|
if not searchDomain:
|
||||||
if debug:
|
|
||||||
print('DEBUG: No domain found in ' + profileHandle)
|
print('DEBUG: No domain found in ' + profileHandle)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
searchDomainFull = searchDomain
|
searchDomainFull = searchDomain
|
||||||
if searchPort:
|
if searchPort:
|
||||||
if searchPort != 80 and searchPort != 443:
|
if searchPort != 80 and searchPort != 443:
|
||||||
|
@ -5848,7 +5846,11 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
if not wf:
|
if not wf:
|
||||||
print('DEBUG: Unable to webfinger ' +
|
print('DEBUG: Unable to webfinger ' +
|
||||||
searchNickname + '@' + searchDomainFull)
|
searchNickname + '@' + searchDomainFull)
|
||||||
|
print('DEBUG: wfRequest ' + str(wfRequest))
|
||||||
|
print('DEBUG: httpPrefix ' + httpPrefix)
|
||||||
|
print('DEBUG: domain ' + domain)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
personUrl = None
|
personUrl = None
|
||||||
if wf.get('errors'):
|
if wf.get('errors'):
|
||||||
personUrl = httpPrefix + '://' + \
|
personUrl = httpPrefix + '://' + \
|
||||||
|
|
Loading…
Reference in New Issue