From 0274682adc68bfc27138216317c565dd751e4280 Mon Sep 17 00:00:00 2001 From: freamon Date: Mon, 21 Oct 2024 23:03:53 +0000 Subject: [PATCH] Bugfix: also federate post deletion by post owners #341 --- app/post/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/post/routes.py b/app/post/routes.py index a203ac59..47975a81 100644 --- a/app/post/routes.py +++ b/app/post/routes.py @@ -1054,7 +1054,7 @@ def post_delete_post(community: Community, post: Post, user_id: int, federate_al # Federation if not community.local_only: # local_only communities do not federate # if this is a remote community and we are a mod of that community - if not post.community.is_local() and user.is_local() and (community.is_moderator(user) or community.is_owner(user)): + if not post.community.is_local() and user.is_local() and (post.user_id == user.id or community.is_moderator(user) or community.is_owner(user)): post_request(post.community.ap_inbox_url, delete_json, user.private_key, user.public_url() + '#main-key') elif post.community.is_local(): # if this is a local community - Announce it to followers on remote instances announce = {