deliver public post with hashtag to all hashtag followers

This commit is contained in:
Henri Dickson 2024-05-24 09:15:20 -04:00
parent d0ed35591b
commit 0c991d1faf

View file

@ -769,8 +769,8 @@ class Post(StatorModel):
# deliver edit to all previously interacted to this post # deliver edit to all previously interacted to this post
for interaction in self.interactions.all(): for interaction in self.interactions.all():
targets.add(interaction.identity) targets.add(interaction.identity)
# deliver to all hashtag followers if self.visibility == Post.Visibilities.public and self.hashtags:
if self.hashtags: # deliver public post with hashtag to all hashtag followers
for follow in HashtagFollow.objects.by_hashtags( for follow in HashtagFollow.objects.by_hashtags(
self.hashtags self.hashtags
).prefetch_related("identity"): ).prefetch_related("identity"):