From c4e1ae49e5bbd3f749514ee11c0d244845dabecc Mon Sep 17 00:00:00 2001 From: freamon Date: Sat, 27 Apr 2024 19:24:31 +0100 Subject: [PATCH] Ignore local content in remote community outboxes --- app/community/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/community/util.py b/app/community/util.py index 85cfe821..2babba51 100644 --- a/app/community/util.py +++ b/app/community/util.py @@ -118,6 +118,10 @@ def retrieve_mods_and_backfill(community_id: int): db.session.commit() continue user = find_actor_or_create(activity['object']['actor']) + if user and user.is_local(): + activity_log.exception_message = 'Activity about local content which is already present' + db.session.commit() + continue if user: post = post_json_to_model(activity_log, activity['object']['object'], user, community) if post: