Ignore local content in remote community outboxes

This commit is contained in:
freamon 2024-04-27 19:24:31 +01:00
parent 2b7cd2302c
commit c4e1ae49e5

View file

@ -118,6 +118,10 @@ def retrieve_mods_and_backfill(community_id: int):
db.session.commit() db.session.commit()
continue continue
user = find_actor_or_create(activity['object']['actor']) 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: if user:
post = post_json_to_model(activity_log, activity['object']['object'], user, community) post = post_json_to_model(activity_log, activity['object']['object'], user, community)
if post: if post: