From 07cf4e70b3c374e819160274ef7bde6d24c735fd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 19 Oct 2023 14:10:24 +0100 Subject: [PATCH] Fix receive of move activity --- inbox.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 38c53a67d..bf69fa2d3 100644 --- a/inbox.py +++ b/inbox.py @@ -1724,7 +1724,12 @@ def _receive_move_activity(session, base_dir: str, if debug: print('INBOX: Move activity has no actor: ' + str(message_json)) 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: print('INBOX: Move activity object is not a string: ' + str(message_json))