summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-22 18:59:51 -0700
committerAndrew Godwin2022-11-22 18:59:51 -0700
commit48154fb20e41bf3f4ba2de42de32c3e75d059941 (patch)
treec065f9450616c1250070841c6a66cbf0388ee585 /activities
parente52c7df498c5f52b9ba9a2ab854d6f06a9b140d7 (diff)
downloadtakahe-48154fb20e41bf3f4ba2de42de32c3e75d059941.tar.gz
takahe-48154fb20e41bf3f4ba2de42de32c3e75d059941.tar.bz2
takahe-48154fb20e41bf3f4ba2de42de32c3e75d059941.zip
Fix boosted notifications
Diffstat (limited to 'activities')
-rw-r--r--activities/models/post_interaction.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/activities/models/post_interaction.py b/activities/models/post_interaction.py
index e9248e8..a913a0f 100644
--- a/activities/models/post_interaction.py
+++ b/activities/models/post_interaction.py
@@ -40,6 +40,13 @@ class PostInteractionStates(StateGraph):
subject_post=interaction.post,
subject_post_interaction=interaction,
)
+ # And one to the post's author
+ await FanOut.objects.acreate(
+ type=FanOut.Types.interaction,
+ identity_id=interaction.post.author_id,
+ subject_post=interaction.post,
+ subject_post_interaction=interaction,
+ )
# Like: send a copy to the original post author only
elif interaction.type == interaction.Types.like:
await FanOut.objects.acreate(