From 51c9e4dd120b53a7ac4585c31b894250d6b5a9cc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 31 May 2025 11:46:13 +0100 Subject: [PATCH] Tidying --- utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils.py b/utils.py index 2cbefd97d..905f2aaf5 100644 --- a/utils.py +++ b/utils.py @@ -3628,9 +3628,8 @@ def post_summary_contains_links(message_json: {}) -> bool: message_json['object'].get('summary')): return False - if message_json['object']['type'] != 'Person' and \ - message_json['object']['type'] != 'Application' and \ - message_json['object']['type'] != 'Group': + if message_json['object']['type'] not in ('Person', + 'Application', 'Group'): if len(message_json['object']['summary']) > 1024: actor_url = get_actor_from_post(message_json) print('INBOX: summary is too long ' +