From 48154fb20e41bf3f4ba2de42de32c3e75d059941 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 22 Nov 2022 18:59:51 -0700 Subject: Fix boosted notifications --- activities/models/post_interaction.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'activities') 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( -- cgit v1.2.3