[CARDS][Note] Fix note replies from calling note macro as if it was still part of the same template

This commit is contained in:
Eliseu Amaro 2022-02-08 00:05:51 +00:00
parent 99593a19ef
commit cb393ca554
No known key found for this signature in database
GPG Key ID: 96DA09D4B97BC2D5

View File

@ -24,12 +24,14 @@
{% endblock note_actions %}
{% block note_replies %}
{% import '/cards/macros/note.html.twig' as noteView %}
{% if replies is defined and replies is not empty %}
<div class="u-in-reply-to replies">
<span class="note-replies-start"
tabindex="0">{{ 'Replies to ' | trans }}{{ nickname }}{{ '\'s note' | trans }}</span>
{% for conversation in replies %}
{{ _self.note_vanilla(conversation['note'], conversation['replies']) }}
{{ noteView.note_vanilla(conversation['note'], conversation['replies']) }}
<hr tabindex="0" title="{{ 'End of reply' | trans }}">
{% endfor %}
</div>