mirror of https://gitlab.com/bashrc2/epicyon
Check for handle
parent
ad23e0c4c3
commit
978ea17d02
10
daemon.py
10
daemon.py
|
@ -2212,7 +2212,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
search_handle = \
|
search_handle = \
|
||||||
search_nickname + '@' + search_domain
|
search_nickname + '@' + search_domain
|
||||||
else:
|
else:
|
||||||
search_handle = None
|
search_handle = ''
|
||||||
if '@' not in search_handle:
|
if '@' not in search_handle:
|
||||||
if search_handle.startswith('http'):
|
if search_handle.startswith('http'):
|
||||||
search_nickname = \
|
search_nickname = \
|
||||||
|
@ -2223,7 +2223,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
search_handle = \
|
search_handle = \
|
||||||
search_nickname + '@' + search_domain
|
search_nickname + '@' + search_domain
|
||||||
else:
|
else:
|
||||||
search_handle = None
|
search_handle = ''
|
||||||
if '@' not in search_handle:
|
if '@' not in search_handle:
|
||||||
# is this a local nickname on this instance?
|
# is this a local nickname on this instance?
|
||||||
local_handle = \
|
local_handle = \
|
||||||
|
@ -2232,8 +2232,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'/accounts/' + local_handle):
|
'/accounts/' + local_handle):
|
||||||
search_handle = local_handle
|
search_handle = local_handle
|
||||||
else:
|
else:
|
||||||
search_handle = None
|
search_handle = ''
|
||||||
if not search_handle:
|
if search_handle is None:
|
||||||
|
search_handle = ''
|
||||||
|
if '@' in search_handle:
|
||||||
msg = \
|
msg = \
|
||||||
html_account_info(self.server.css_cache,
|
html_account_info(self.server.css_cache,
|
||||||
self.server.translate,
|
self.server.translate,
|
||||||
|
|
Loading…
Reference in New Issue