From 0b154ddf6976523610a080748f9bca324e429db1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 8 May 2024 11:45:51 +0100 Subject: [PATCH] Tidying --- acceptreject.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/acceptreject.py b/acceptreject.py index 68f03588e..e062513db 100644 --- a/acceptreject.py +++ b/acceptreject.py @@ -90,9 +90,8 @@ def _accept_follow(base_dir: str, message_json: {}, """ if not has_object_string_type(message_json, debug): return - if not message_json['object']['type'] == 'Follow': - if not message_json['object']['type'] == 'Join': - return + if message_json['object']['type'] not in ('Follow', 'Join'): + return if debug: print('DEBUG: receiving Follow activity') if not message_json['object'].get('actor'):