From 08591a11dbec2807622a5c4ced767f29639b8445 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Thu, 4 Jul 2024 22:28:41 -0700 Subject: [PATCH] ActivityPub.inbox: don't report error on unsupported type, just log --- activitypub.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/activitypub.py b/activitypub.py index 7a9e4ed..9bf1c93 100644 --- a/activitypub.py +++ b/activitypub.py @@ -1027,10 +1027,7 @@ def inbox(protocol=None, id=None): (type in as2.CRUD_VERBS and inner_type and inner_type not in ActivityPub.SUPPORTED_AS2_TYPES)): - logger.info(f'AS2: {json_dumps(activity, indent=2)}') - msg = f"Bridgy Fed for ActivityPub doesn't support {type} {inner_type} yet" - report_error(msg) - error(msg, status=204) + error(f"Bridgy Fed for ActivityPub doesn't support {type} {inner_type} yet: {json_dumps(activity, indent=2)}", status=204) # are we already processing or done with this activity? id = activity.get('id')