From 87354c06bfb5f08980d72eef6daae9641f3a1a37 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Tue, 1 Mar 2022 17:39:14 +0000 Subject: [PATCH] [TEMPLATES] For note complementary info, compare identity by the ID, rather than nickname, which is not unique --- templates/cards/blocks/note.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/cards/blocks/note.html.twig b/templates/cards/blocks/note.html.twig index 0ddbb99202..8812f74d09 100644 --- a/templates/cards/blocks/note.html.twig +++ b/templates/cards/blocks/note.html.twig @@ -132,7 +132,7 @@ {% if complementary_info['action'] is defined and not null %} {% for complementary_info_actor in complementary_info['actors'] %} - {% if complementary_info_actor is defined and (app.user is null or complementary_info_actor.getNickname() != app.user.nickname) %} + {% if complementary_info_actor is defined and (app.user is null or complementary_info_actor.getId() != app.user.getId()) %} {% set tmp %}{{ complementary_info_actor.getNickname() }}{% endset %} {% set formatted = formatted|merge([tmp]) %} {% endif %}