Fix receive of move activity

main
Bob Mottram 2023-10-19 14:10:24 +01:00
parent 3f81256a06
commit 07cf4e70b3
1 changed files with 6 additions and 1 deletions

View File

@ -1724,7 +1724,12 @@ def _receive_move_activity(session, base_dir: str,
if debug: if debug:
print('INBOX: Move activity has no actor: ' + str(message_json)) print('INBOX: Move activity has no actor: ' + str(message_json))
return False return False
if not has_object_string_type(message_json, debug): if not message_json.get('object'):
if debug:
print('INBOX: Move activity object not found: ' +
str(message_json))
return False
if not isinstance(message_json['object'], str):
if debug: if debug:
print('INBOX: Move activity object is not a string: ' + print('INBOX: Move activity object is not a string: ' +
str(message_json)) str(message_json))