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.
This commit is contained in:
Ricardo
2026-02-27 13:18:07 +01:00
parent 10dfcf8d63
commit 39866a4d4b
+1 -3
View File
@@ -1,7 +1,5 @@
{% extends "layouts/ap-reader.njk" %} {% extends "layouts/ap-reader.njk" %}
{% from "prose/macro.njk" import prose with context %}
{% block readercontent %} {% block readercontent %}
{# Tag header #} {# Tag header #}
<header class="ap-tag-header"> <header class="ap-tag-header">
@@ -81,6 +79,6 @@
</div> </div>
{% endif %} {% endif %}
{% else %} {% else %}
{{ prose({ text: __("activitypub.reader.tagTimeline.noPosts", tag) }) }} {{ prose({ text: __("activitypub.reader.tagTimeline.noPosts") | replace("%s", tag) }) }}
{% endif %} {% endif %}
{% endblock %} {% endblock %}