More general handling of thread get requests

main
Bob Mottram 2024-10-18 20:01:19 +01:00
parent 0f2f9cdb9c
commit e59e93ea24
1 changed files with 6 additions and 0 deletions

View File

@ -1291,6 +1291,12 @@ def show_conversation_thread(self, authorized: bool,
# https://codeberg.org/fediverse/fep/src/branch/main/fep/76ea/fep-76ea.md
if conv_separator not in path and \
'/thread/' in path and \
'?repeat' not in path and \
'?un' not in path and \
'?like' not in path and \
'?bookmark' not in path and \
'?selreact' not in path and \
'?mute' not in path and \
'?reply' not in path:
convthread_id = path.split('/thread/', 1)[1].strip()
if convthread_id.isdigit():