From a6e58060c7cc7fbffea76aab79124ed8bc343e72 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 19 Apr 2024 20:54:48 -0400 Subject: [PATCH] fix notification --- social/templates/event/boost.html | 1 + takahe/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 social/templates/event/boost.html diff --git a/social/templates/event/boost.html b/social/templates/event/boost.html new file mode 100644 index 00000000..f3c0428b --- /dev/null +++ b/social/templates/event/boost.html @@ -0,0 +1 @@ +unsupported notification: boost diff --git a/takahe/utils.py b/takahe/utils.py index aeb8f002..bc823bdd 100644 --- a/takahe/utils.py +++ b/takahe/utils.py @@ -962,7 +962,7 @@ class Takahe: "subject_post__emojis", ) .filter(identity=identity_id) - .exclude(type="post", subject_identity__isnull=True) + .exclude(type__in=["post", "boost"]) .exclude(subject_identity_id=identity_id) .order_by("-created") )