From 39866a4d4b9e3e9daf897407498f1bb2aa34c7b8 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 27 Feb 2026 13:18:07 +0100 Subject: [PATCH] fix: tag timeline empty state rendering Nunjucks macro instead of hashtag name The i18n __() call with `tag` as second argument collided with the `tag` Nunjucks component macro imported by default.njk. Use | replace filter instead of sprintf-style substitution to avoid the scoping issue. --- views/activitypub-tag-timeline.njk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/views/activitypub-tag-timeline.njk b/views/activitypub-tag-timeline.njk index 6071138..15f1222 100644 --- a/views/activitypub-tag-timeline.njk +++ b/views/activitypub-tag-timeline.njk @@ -1,7 +1,5 @@ {% extends "layouts/ap-reader.njk" %} -{% from "prose/macro.njk" import prose with context %} - {% block readercontent %} {# Tag header #}
@@ -81,6 +79,6 @@ {% endif %} {% else %} - {{ prose({ text: __("activitypub.reader.tagTimeline.noPosts", tag) }) }} + {{ prose({ text: __("activitypub.reader.tagTimeline.noPosts") | replace("%s", tag) }) }} {% endif %} {% endblock %}