From cb393ca554880ab0bb3053bea55cda7270b3b1c6 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Tue, 8 Feb 2022 00:05:51 +0000 Subject: [PATCH] [CARDS][Note] Fix note replies from calling note macro as if it was still part of the same template --- templates/cards/blocks/note.html.twig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/cards/blocks/note.html.twig b/templates/cards/blocks/note.html.twig index 9c4980072f..ffa9dbdc09 100644 --- a/templates/cards/blocks/note.html.twig +++ b/templates/cards/blocks/note.html.twig @@ -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 %}
{{ 'Replies to ' | trans }}{{ nickname }}{{ '\'s note' | trans }} {% for conversation in replies %} - {{ _self.note_vanilla(conversation['note'], conversation['replies']) }} + {{ noteView.note_vanilla(conversation['note'], conversation['replies']) }}
{% endfor %}