From 798222dcdb7b8ea2293a3b1cf66851dc22c07e42 Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Sun, 31 Dec 2023 13:06:30 -0500 Subject: [PATCH] Post update/delete also fanout to those who liked/boosted it but not following the author (#684) --- activities/models/post.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activities/models/post.py b/activities/models/post.py index f4b218a..fef4db4 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -765,6 +765,9 @@ class Post(StatorModel): targets = set() for mention in self.mentions.all(): targets.add(mention) + if self.visibility in [Post.Visibilities.public, Post.Visibilities.unlisted]: + for interaction in self.interactions.all(): + targets.add(interaction.identity) # Then, if it's not mentions only, also deliver to followers and all hashtag followers if self.visibility != Post.Visibilities.mentioned: for follower in self.author.inbound_follows.filter(