kopia lustrzana https://github.com/jointakahe/takahe
only do so for public and unlisted posts
rodzic
76666688d6
commit
33640af49d
|
@ -765,6 +765,7 @@ class Post(StatorModel):
|
||||||
targets = set()
|
targets = set()
|
||||||
for mention in self.mentions.all():
|
for mention in self.mentions.all():
|
||||||
targets.add(mention)
|
targets.add(mention)
|
||||||
|
if self.visibility in [Post.Visibilities.public, Post.Visibilities.unlisted]:
|
||||||
for interaction in self.interactions.all():
|
for interaction in self.interactions.all():
|
||||||
targets.add(interaction.identity)
|
targets.add(interaction.identity)
|
||||||
# Then, if it's not mentions only, also deliver to followers and all hashtag followers
|
# Then, if it's not mentions only, also deliver to followers and all hashtag followers
|
||||||
|
|
Ładowanie…
Reference in New Issue