mirror of https://gitlab.com/bashrc2/epicyon
Authorized known instances
parent
6f704b5331
commit
ccdfbd2059
|
@ -2263,7 +2263,7 @@ def daemon_http_get(self) -> None:
|
||||||
self.server.debug)
|
self.server.debug)
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.path == '/knowninstances':
|
if self.path.endswith('/knowninstances'):
|
||||||
if not authorized:
|
if not authorized:
|
||||||
http_403(self)
|
http_403(self)
|
||||||
return
|
return
|
||||||
|
|
|
@ -352,7 +352,8 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
||||||
'<p class="login-text"><a href="/about">' + \
|
'<p class="login-text"><a href="/about">' + \
|
||||||
translate['About this Instance'] + '</a></p>'
|
translate['About this Instance'] + '</a></p>'
|
||||||
html_str += \
|
html_str += \
|
||||||
'<p class="login-text"><a href="/knowninstances">' + \
|
'<p class="login-text"><a href="/users/' + \
|
||||||
|
nickname + '/knowninstances">' + \
|
||||||
translate['Epicyon Instances'] + '</a></p>'
|
translate['Epicyon Instances'] + '</a></p>'
|
||||||
html_str += \
|
html_str += \
|
||||||
'<p class="login-text"><a href="/manual">' + \
|
'<p class="login-text"><a href="/manual">' + \
|
||||||
|
|
Loading…
Reference in New Issue