mirror of https://gitlab.com/bashrc2/epicyon
Not a reply
parent
067ce6a4c2
commit
989c800dfb
|
@ -1289,7 +1289,9 @@ def show_conversation_thread(self, authorized: bool,
|
||||||
return False
|
return False
|
||||||
conv_separator = '?convthread='
|
conv_separator = '?convthread='
|
||||||
# https://codeberg.org/fediverse/fep/src/branch/main/fep/76ea/fep-76ea.md
|
# https://codeberg.org/fediverse/fep/src/branch/main/fep/76ea/fep-76ea.md
|
||||||
if conv_separator not in path and '/thread/' in path:
|
if conv_separator not in path and \
|
||||||
|
'/thread/' in path and \
|
||||||
|
'?reply' not in path:
|
||||||
convthread_id = path.split('/thread/', 1)[1].strip()
|
convthread_id = path.split('/thread/', 1)[1].strip()
|
||||||
if convthread_id.isdigit():
|
if convthread_id.isdigit():
|
||||||
new_tag = convthread_id_to_conversation_tag(domain_full,
|
new_tag = convthread_id_to_conversation_tag(domain_full,
|
||||||
|
|
|
@ -77,10 +77,6 @@ def redirect_headers(self, redirect: str, cookie: str,
|
||||||
calling_domain: str,
|
calling_domain: str,
|
||||||
code: int) -> None:
|
code: int) -> None:
|
||||||
if '://' not in redirect:
|
if '://' not in redirect:
|
||||||
if redirect.startswith('tag:'):
|
|
||||||
# conversation redirect
|
|
||||||
conv_separator = '?convthread='
|
|
||||||
redirect = conv_separator + redirect
|
|
||||||
redirect = \
|
redirect = \
|
||||||
get_instance_url(calling_domain,
|
get_instance_url(calling_domain,
|
||||||
self.server.http_prefix,
|
self.server.http_prefix,
|
||||||
|
|
Loading…
Reference in New Issue