Get users path for delete

merge-requests/30/head
Bob Mottram 2022-03-12 14:22:18 +00:00
parent 998fa21b13
commit 8f8a3098fd
1 changed files with 3 additions and 0 deletions

View File

@ -9821,6 +9821,9 @@ class PubServer(BaseHTTPRequestHandler):
if '?' in timeline_str:
timeline_str = timeline_str.split('?')[0]
users_path = path.split('?delete=')[0]
if not users_path.startswith('/users/'):
if '/users/' in users_path:
users_path = '/users/' + users_path.split('/users/')[1]
actor = \
http_prefix + '://' + domain_full + users_path
if self.server.allow_deletion or \