diff --git a/source/plugins/reactions/index.mjs b/source/plugins/reactions/index.mjs index e2b46d80..9fc0894a 100644 --- a/source/plugins/reactions/index.mjs +++ b/source/plugins/reactions/index.mjs @@ -45,7 +45,7 @@ list[key] = {value, score:value/(display === "relative" ? max : reactions.length)} //Results - return {list, comments:comments.length, details, days} + return {list, comments:comments.length, details, days, twemoji:q["config.twemoji"]} } //Handle errors catch (error) { diff --git a/source/templates/classic/partials/reactions.ejs b/source/templates/classic/partials/reactions.ejs index 33085bb4..b2f2157c 100644 --- a/source/templates/classic/partials/reactions.ejs +++ b/source/templates/classic/partials/reactions.ejs @@ -13,12 +13,14 @@ <% } else { %>
- + <% if (plugins.reactions.twemoji) { %> + + <% } %>
<% 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] ?? {} %>
@@ -26,13 +28,13 @@ <% if (score > 0) { %> - <% if (true) { %> + <% if (plugins.reactions.twemoji) { %> <%= icon %> <% } else { %> <%= icon %> <% } %> <% } else { %> - <% if (true) { %> + <% if (plugins.reactions.twemoji) { %> <%= icon %> <% } else { %> <%= icon %>