From 495e955378d62dc439c4c210785e5d401bc77f64 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 16 Nov 2022 06:53:39 -0700 Subject: Tag and visibility handling --- templates/activities/_event.html | 4 ++++ templates/activities/_post.html | 14 ++++++++++++++ templates/activities/compose.html | 19 +++++++++++++++++++ templates/activities/home.html | 2 +- templates/base.html | 4 +++- 5 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 templates/activities/compose.html (limited to 'templates') diff --git a/templates/activities/_event.html b/templates/activities/_event.html index bbe0ae5..375e475 100644 --- a/templates/activities/_event.html +++ b/templates/activities/_event.html @@ -14,6 +14,10 @@ {{ event.subject_identity.name_or_handle }} followed you {% elif event.type == "like" %} {{ event.subject_identity.name_or_handle }} liked {{ event.subject_post }} + {% elif event.type == "mentioned" %} + {{ event.subject_post.author.name_or_handle }} mentioned you in {{ event.subject_post }} + {% elif event.type == "boosted" %} + {{ event.subject_identity.name_or_handle }} boosted your post {{ event.subject_post }} {% else %} Unknown event type {{event.type}} {% endif %} diff --git a/templates/activities/_post.html b/templates/activities/_post.html index d05f7ad..6392c89 100644 --- a/templates/activities/_post.html +++ b/templates/activities/_post.html @@ -9,6 +9,15 @@ {% endif %}