forked from indymedia/epicyon
Include port number in domain during search
parent
862cc3b68a
commit
6ea8ac7835
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue