From a24ed21be6d1d5a21b2fc060f1eca49c895d7454 Mon Sep 17 00:00:00 2001 From: freamon Date: Tue, 21 Jan 2025 17:13:50 +0000 Subject: [PATCH] Monitor any more Announces from nodebb that are missing a Create actor --- app/activitypub/routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/activitypub/routes.py b/app/activitypub/routes.py index cbd2c608..f9f57bb6 100644 --- a/app/activitypub/routes.py +++ b/app/activitypub/routes.py @@ -420,6 +420,7 @@ def shared_inbox(): object = request_json['object'] if not 'actor' in object: missing_actor_in_announce_object = True + log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_MONITOR, request_json, 'Actor is missing in Announce object') if not 'id' in object or not 'type' in object or not 'object' in object: if 'type' in object and (object['type'] == 'Page' or object['type'] == 'Note'): log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_IGNORED, saved_json, 'Intended for Mastodon') @@ -541,6 +542,7 @@ def replay_inbox_request(request_json): object = request_json['object'] if not 'actor' in object: missing_actor_in_announce_object = True + log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_MONITOR, request_json, 'REPLAY: Actor is missing in Announce object') if not 'id' in object or not 'type' in object or not 'object' in object: if 'type' in object and (object['type'] == 'Page' or object['type'] == 'Note'): log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_IGNORED, request_json, 'REPLAY: Intended for Mastodon')