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:
@@ -1,7 +1,5 @@
|
||||
{% extends "layouts/ap-reader.njk" %}
|
||||
|
||||
{% from "prose/macro.njk" import prose with context %}
|
||||
|
||||
{% block readercontent %}
|
||||
{# Tag header #}
|
||||
<header class="ap-tag-header">
|
||||
@@ -81,6 +79,6 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{{ prose({ text: __("activitypub.reader.tagTimeline.noPosts", tag) }) }}
|
||||
{{ prose({ text: __("activitypub.reader.tagTimeline.noPosts") | replace("%s", tag) }) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user