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" %}
|
{% 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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user