From 9dc2d48aca0394f125fa9dfad1a603381e3db608 Mon Sep 17 00:00:00 2001 From: freamon Date: Wed, 29 May 2024 23:16:38 +0100 Subject: [PATCH] Federate post to user followers before community followers --- app/community/routes.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/community/routes.py b/app/community/routes.py index b735e0b9..5d6455f3 100644 --- a/app/community/routes.py +++ b/app/community/routes.py @@ -540,9 +540,9 @@ def add_discussion_post(actor): notify_about_post(post) + federate_post_to_user_followers(post) if not community.local_only: federate_post(community, post) - federate_post_to_user_followers(post) return redirect(f"/post/{post.id}") else: @@ -623,9 +623,9 @@ def add_image_post(actor): upvote_own_post(post) notify_about_post(post) + federate_post_to_user_followers(post) if not community.local_only: federate_post(community, post) - federate_post_to_user_followers(post) return redirect(f"/post/{post.id}") else: @@ -704,9 +704,9 @@ def add_link_post(actor): upvote_own_post(post) notify_about_post(post) + federate_post_to_user_followers(post) if not community.local_only: federate_post(community, post) - federate_post_to_user_followers(post) return redirect(f"/post/{post.id}") else: @@ -785,9 +785,9 @@ def add_video_post(actor): upvote_own_post(post) notify_about_post(post) + federate_post_to_user_followers(post) if not community.local_only: federate_post(community, post) - federate_post_to_user_followers(post) return redirect(f"/post/{post.id}") else: @@ -851,9 +851,10 @@ def add_poll_post(actor): notify_about_post(post) + if not poll.local_only: + federate_post_to_user_followers(post) if not community.local_only and not poll.local_only: federate_post(community, post) - federate_post_to_user_followers(post) return redirect(f"/post/{post.id}") else: