From e59e410ff9e7bc9ca378497ff78ed158fd3db61b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 23 Mar 2023 11:52:10 +0000 Subject: [PATCH] Already checked for object --- inbox.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/inbox.py b/inbox.py index 7ab6d077e..539d7f271 100644 --- a/inbox.py +++ b/inbox.py @@ -988,14 +988,6 @@ def _receive_undo_follow(base_dir: str, message_json: {}, if debug: print('DEBUG: undo follow request actors do not match') return False - if not message_json['object'].get('object'): - if debug: - print('DEBUG: undo follow request has no object within object') - return False - if not isinstance(message_json['object']['object'], str): - if debug: - print('DEBUG: undo follow request object is not a string') - return False nickname_follower = \ get_nickname_from_actor(message_json['object']['actor'])