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