mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
Ignore local content in remote community outboxes
This commit is contained in:
parent
2b7cd2302c
commit
c4e1ae49e5
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue