Include port number in domain during search

master
Bob Mottram 2019-08-04 21:06:25 +01:00
parent 862cc3b68a
commit 6ea8ac7835
2 changed files with 3 additions and 3 deletions

View File

@ -1839,7 +1839,7 @@ class PubServer(BaseHTTPRequestHandler):
searchStr=searchParams.split('searchtext=')[1]
if '&' in searchStr:
searchStr=searchStr.split('&')[0]
searchStr=searchStr.replace('+',' ').replace('%40','@').strip()
searchStr=searchStr.replace('+',' ').replace('%40','@').replace('%3A',':').strip()
if '@' in searchStr:
print('Search: '+searchStr)
nickname=getNicknameFromActor(self.path)

View File

@ -1047,10 +1047,10 @@ def htmlProfileAfterSearch(baseDir: str,path: str,httpPrefix: str, \
profileStr=''
with open(baseDir+'/epicyon-profile.css', 'r') as cssFile:
wf = webfingerHandle(session,searchNickname+'@'+searchDomain,httpPrefix,wfRequest)
wf = webfingerHandle(session,searchNickname+'@'+searchDomainFull,httpPrefix,wfRequest)
if not wf:
if debug:
print('DEBUG: Unable to webfinger '+searchNickname+'@'+searchDomain)
print('DEBUG: Unable to webfinger '+searchNickname+'@'+searchDomainFull)
return None
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
personUrl = getUserUrl(wf)