mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
don't attempt to remove content from accounts that are already deleted / banned
This commit is contained in:
parent
99633772ec
commit
ef3393459b
1 changed files with 1 additions and 1 deletions
|
@ -1435,7 +1435,7 @@ def remove_data_from_banned_user_task(deletor_ap_id, user_ap_id, target):
|
|||
user = find_actor_or_create(user_ap_id, create_if_not_found=False)
|
||||
community = Community.query.filter_by(ap_profile_id=target).first()
|
||||
|
||||
if not deletor and not user:
|
||||
if not deletor or not user:
|
||||
return
|
||||
|
||||
# site bans by admins
|
||||
|
|
Loading…
Add table
Reference in a new issue