From d14ea9ea564ca1755abb2d80e148bd9aba339495 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Tue, 9 Mar 2021 21:55:50 +0100 Subject: [PATCH] Fix display for twemoji --- .../templates/classic/partials/reactions.ejs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/source/templates/classic/partials/reactions.ejs b/source/templates/classic/partials/reactions.ejs index 984d54ab..33085bb4 100644 --- a/source/templates/classic/partials/reactions.ejs +++ b/source/templates/classic/partials/reactions.ejs @@ -13,6 +13,12 @@ <% } else { %>
+
<% for (const [reaction, icon] of Object.entries({HEART:"❤️", THUMBS_UP:"👍", THUMBS_DOWN:"👎", LAUGH:"😄", CONFUSED:"😕", EYES:"👀", ROCKET:"🚀", HOORAY:"🎉"})) { const {score = 0, value:count = 0} = plugins.reactions.list[reaction] ?? {} %>
@@ -20,9 +26,17 @@ <% if (score > 0) { %> - <%= icon %> + <% if (true) { %> + <%= icon %> + <% } else { %> + <%= icon %> + <% } %> <% } else { %> - <%= icon %> + <% if (true) { %> + <%= icon %> + <% } else { %> + <%= icon %> + <% } %> <% } %> <% if (plugins.reactions.details === "percentage") { %>