mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
53eeb041fd
commit
803fed70b0
|
@ -118,7 +118,15 @@ def receive_search_query(self, calling_domain: str, cookie: str,
|
||||||
default_timeline, cookie, calling_domain, 303)
|
default_timeline, cookie, calling_domain, 303)
|
||||||
self.server.postreq_busy = False
|
self.server.postreq_busy = False
|
||||||
return
|
return
|
||||||
if 'searchtext=' in search_params:
|
if 'searchtext=' not in search_params:
|
||||||
|
actor_str = \
|
||||||
|
get_instance_url(calling_domain, http_prefix, domain_full,
|
||||||
|
onion_domain, i2p_domain) + users_path
|
||||||
|
redirect_headers(self, actor_str + '/' + default_timeline,
|
||||||
|
cookie, calling_domain, 303)
|
||||||
|
self.server.postreq_busy = False
|
||||||
|
return
|
||||||
|
|
||||||
search_str = search_params.split('searchtext=')[1]
|
search_str = search_params.split('searchtext=')[1]
|
||||||
if '&' in search_str:
|
if '&' in search_str:
|
||||||
search_str = search_str.split('&')[0]
|
search_str = search_str.split('&')[0]
|
||||||
|
@ -603,10 +611,10 @@ def receive_search_query(self, calling_domain: str, cookie: str,
|
||||||
write2(self, msg)
|
write2(self, msg)
|
||||||
self.server.postreq_busy = False
|
self.server.postreq_busy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
actor_str = \
|
actor_str = \
|
||||||
get_instance_url(calling_domain, http_prefix,
|
get_instance_url(calling_domain, http_prefix,
|
||||||
domain_full, onion_domain, i2p_domain) + \
|
domain_full, onion_domain, i2p_domain) + users_path
|
||||||
users_path
|
|
||||||
redirect_headers(self, actor_str + '/' + default_timeline,
|
redirect_headers(self, actor_str + '/' + default_timeline,
|
||||||
cookie, calling_domain, 303)
|
cookie, calling_domain, 303)
|
||||||
self.server.postreq_busy = False
|
self.server.postreq_busy = False
|
||||||
|
|
Loading…
Reference in New Issue