Not a reply

main
Bob Mottram 2024-10-18 15:53:42 +01:00
parent 067ce6a4c2
commit 989c800dfb
2 changed files with 3 additions and 5 deletions

View File

@ -1289,7 +1289,9 @@ def show_conversation_thread(self, authorized: bool,
return False
conv_separator = '?convthread='
# 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()
if convthread_id.isdigit():
new_tag = convthread_id_to_conversation_tag(domain_full,

View File

@ -77,10 +77,6 @@ def redirect_headers(self, redirect: str, cookie: str,
calling_domain: str,
code: int) -> None:
if '://' not in redirect:
if redirect.startswith('tag:'):
# conversation redirect
conv_separator = '?convthread='
redirect = conv_separator + redirect
redirect = \
get_instance_url(calling_domain,
self.server.http_prefix,