Exctra checks for moved actor

merge-requests/30/head
Bob Mottram 2022-12-01 11:10:32 +00:00
parent 5f1a062f8f
commit 049f3f7e09
1 changed files with 6 additions and 4 deletions

View File

@ -3008,9 +3008,11 @@ class PubServer(BaseHTTPRequestHandler):
options_actor = options_actor.split('&')[0] options_actor = options_actor.split('&')[0]
# actor for the movedTo # actor for the movedTo
options_actor_moved = options_confirm_params.split('movedToActor=')[1] options_actor_moved = None
if '&' in options_actor_moved: if 'movedToActor=' in options_confirm_params:
options_actor_moved = options_actor_moved.split('&')[0] options_actor_moved = options_confirm_params.split('movedToActor=')[1]
if '&' in options_actor_moved:
options_actor_moved = options_actor_moved.split('&')[0]
# url of the avatar # url of the avatar
options_avatar_url = options_confirm_params.split('avatarUrl=')[1] options_avatar_url = options_confirm_params.split('avatarUrl=')[1]
@ -3421,7 +3423,7 @@ class PubServer(BaseHTTPRequestHandler):
# person options screen, move button # person options screen, move button
# See html_person_options followStr # See html_person_options followStr
if '&submitMove=' in options_confirm_params: if '&submitMove=' in options_confirm_params and options_actor_moved:
if debug: if debug:
print('Moving ' + options_actor_moved) print('Moving ' + options_actor_moved)
msg = \ msg = \