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( diff --git a/templates/activities/_event.html b/templates/activities/_event.html index 81e9dd2..c6d30b1 100644 --- a/templates/activities/_event.html +++ b/templates/activities/_event.html @@ -22,7 +22,12 @@ {% include "activities/_post.html" with post=event.subject_post %} {% elif event.type == "boosted" %} - {{ event.subject_identity.name_or_handle }} boosted your post {{ event.subject_post }} +
+ + {{ event.subject_identity.name_or_handle }} + boosted your post +
+ {% include "activities/_post.html" with post=event.subject_post %} {% else %} Unknown event type {{event.type}} {% endif %}