Handle relative path in conversation view

merge-requests/30/head
Bob Mottram 2023-01-18 20:17:31 +00:00
parent 8af3565d33
commit 1ba9eaa97b
1 changed files with 3 additions and 0 deletions

View File

@ -12236,6 +12236,9 @@ class PubServer(BaseHTTPRequestHandler):
return False return False
post_id = path.split('?convthread=')[1].strip() post_id = path.split('?convthread=')[1].strip()
post_id = post_id.replace('--', '/') post_id = post_id.replace('--', '/')
if post_id.startswith('/users/'):
instance_url = self._get_instance_url(calling_domain)
post_id = instance_url + post_id
nickname = path.split('/users/')[1] nickname = path.split('/users/')[1]
if '?convthread=' in nickname: if '?convthread=' in nickname:
nickname = nickname.split('?convthread=')[0] nickname = nickname.split('?convthread=')[0]