mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-21 14:51:02 +00:00
Post update/delete also fanout to those who liked/boosted it but not following the author (#684)
This commit is contained in:
parent
74b3ac551a
commit
798222dcdb
1 changed files with 3 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue