summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2026-01-08 08:43:50 +0100
committerGravatar grunfink2026-01-08 08:43:50 +0100
commitc6642e958b628426f2c7b0d71b427a7960cf063c (patch)
treea3cf55f8edd5e9d54fadf89cb009f5d6851e2a10
parentIf disable_emojireact is set to true in server.json, EmojiReacts are dropped ... (diff)
downloadsnac2-c6642e958b628426f2c7b0d71b427a7960cf063c.tar.gz
snac2-c6642e958b628426f2c7b0d71b427a7960cf063c.tar.xz
snac2-c6642e958b628426f2c7b0d71b427a7960cf063c.zip
Don't show any EmojiReactions if they are disabled.
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 4299396..c41d7f4 100644
--- a/html.c
+++ b/html.c
@@ -2447,7 +2447,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2447 2447
2448 /* add all emoji reacts */ 2448 /* add all emoji reacts */
2449 int is_emoji = 0; 2449 int is_emoji = 0;
2450 { 2450 if (!xs_is_true(xs_dict_get(srv_config, "disable_emojireact"))) {
2451 int c = 0; 2451 int c = 0;
2452 const xs_dict *k; 2452 const xs_dict *k;
2453 xs *ls = xs_list_new(); 2453 xs *ls = xs_list_new();