mirror of https://gitlab.com/bashrc2/epicyon
Check for no domain
parent
b8aa529adc
commit
aab90e75da
15
daemon.py
15
daemon.py
|
@ -7765,12 +7765,15 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.news_instance,
|
||||
authorized,
|
||||
access_keys, is_group).encode('utf-8')
|
||||
msglen = len(msg)
|
||||
self._set_headers('text/html', msglen,
|
||||
cookie, calling_domain, False)
|
||||
self._write(msg)
|
||||
fitness_performance(getreq_start_time, self.server.fitness,
|
||||
'_GET', '_show_person_options', debug)
|
||||
if msg:
|
||||
msglen = len(msg)
|
||||
self._set_headers('text/html', msglen,
|
||||
cookie, calling_domain, False)
|
||||
self._write(msg)
|
||||
fitness_performance(getreq_start_time, self.server.fitness,
|
||||
'_GET', '_show_person_options', debug)
|
||||
else:
|
||||
self._404()
|
||||
return
|
||||
|
||||
if '/users/news/' in path:
|
||||
|
|
|
@ -66,6 +66,8 @@ def html_person_options(default_timeline: str,
|
|||
"""Show options for a person: view/follow/block/report
|
||||
"""
|
||||
options_domain, options_port = get_domain_from_actor(options_actor)
|
||||
if not options_domain:
|
||||
return None
|
||||
options_domain_full = get_full_domain(options_domain, options_port)
|
||||
|
||||
if os.path.isfile(base_dir + '/accounts/options-background-custom.jpg'):
|
||||
|
|
Loading…
Reference in New Issue