aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-01-08 09:05:53 +0100
committergrunfink <grunfink@comam.es>2026-01-08 09:05:53 +0100
commita8cbbeeb3fdc8ec660270b9112b50d2dee71e55d (patch)
tree8c9963d0ffb5e04e362e546049b011c11d851452 /html.c
parentcef1d7a176b7603491dfec3f394c1b34bf765f2c (diff)
Also disable EmojiReact notifications, if so configured.
Diffstat (limited to 'html.c')
-rw-r--r--html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/html.c b/html.c
index f26ac4d..d5294cb 100644
--- a/html.c
+++ b/html.c
@@ -4030,6 +4030,9 @@ xs_str *html_notifications(snac *user, int skip, int show)
if (xs_is_string(id2) && xs_set_add(&rep, id2) != 1)
continue;
+ if (strcmp(type, "EmojiReact") == 0 && xs_is_true(xs_dict_get(srv_config, "disable_emojireact")))
+ continue;
+
object_get(id, &obj);
const char *msg_id = NULL;