mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Federate post to user followers before community followers
This commit is contained in:
parent
442a3100a2
commit
9dc2d48aca
1 changed files with 6 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue