mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
50c3eccbad
commit
99bb3a41b6
|
@ -220,7 +220,12 @@ def daemon_http_post(self) -> None:
|
||||||
self.server.base_dir,
|
self.server.base_dir,
|
||||||
self.server.domain,
|
self.server.domain,
|
||||||
self.server.debug,
|
self.server.debug,
|
||||||
self.server.system_language)
|
self.server.system_language,
|
||||||
|
self.server.http_prefix,
|
||||||
|
self.server.domain_full,
|
||||||
|
self.server.onion_domain,
|
||||||
|
self.server.i2p_domain,
|
||||||
|
self.server.max_post_length)
|
||||||
self.server.postreq_busy = False
|
self.server.postreq_busy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,12 @@ from categories import set_hashtag_category
|
||||||
def set_hashtag_category2(self, calling_domain: str, cookie: str,
|
def set_hashtag_category2(self, calling_domain: str, cookie: str,
|
||||||
path: str, base_dir: str,
|
path: str, base_dir: str,
|
||||||
domain: str, debug: bool,
|
domain: str, debug: bool,
|
||||||
system_language: str) -> None:
|
system_language: str,
|
||||||
|
http_prefix: str,
|
||||||
|
domain_full: str,
|
||||||
|
onion_domain: str,
|
||||||
|
i2p_domain: str,
|
||||||
|
max_post_length: int) -> None:
|
||||||
"""On the screen after selecting a hashtag from the swarm, this sets
|
"""On the screen after selecting a hashtag from the swarm, this sets
|
||||||
the category for that tag
|
the category for that tag
|
||||||
"""
|
"""
|
||||||
|
@ -49,10 +54,8 @@ def set_hashtag_category2(self, calling_domain: str, cookie: str,
|
||||||
users_path = users_path.split('/tags/')[0]
|
users_path = users_path.split('/tags/')[0]
|
||||||
actor_str = \
|
actor_str = \
|
||||||
get_instance_url(calling_domain,
|
get_instance_url(calling_domain,
|
||||||
self.server.http_prefix,
|
http_prefix, domain_full,
|
||||||
self.server.domain_full,
|
onion_domain, i2p_domain) + \
|
||||||
self.server.onion_domain,
|
|
||||||
self.server.i2p_domain) + \
|
|
||||||
users_path
|
users_path
|
||||||
tag_screen_str = actor_str + '/tags/' + hashtag
|
tag_screen_str = actor_str + '/tags/' + hashtag
|
||||||
|
|
||||||
|
@ -80,7 +83,7 @@ def set_hashtag_category2(self, calling_domain: str, cookie: str,
|
||||||
length = int(self.headers['Content-length'])
|
length = int(self.headers['Content-length'])
|
||||||
|
|
||||||
# check that the POST isn't too large
|
# check that the POST isn't too large
|
||||||
if length > self.server.max_post_length:
|
if length > max_post_length:
|
||||||
print('Maximum links data length exceeded ' + str(length))
|
print('Maximum links data length exceeded ' + str(length))
|
||||||
redirect_headers(self, tag_screen_str, cookie, calling_domain)
|
redirect_headers(self, tag_screen_str, cookie, calling_domain)
|
||||||
self.server.postreq_busy = False
|
self.server.postreq_busy = False
|
||||||
|
|
Loading…
Reference in New Issue