commit 6a2b4bb

grunfink  ·  2026-01-08 07:40:18 +0000 UTC
parent a01e4b1
If disable_emojireact is set to true in server.json, EmojiReacts are dropped on input.
1 files changed,  +5, -0
+5, -0
 1@@ -2578,6 +2578,11 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
 2         return -1;
 3     }
 4 
 5+    if (strcmp(type, "EmojiReact") == 0 && xs_is_true(xs_dict_get(srv_config, "disable_emojireact"))) {
 6+        srv_log(xs_fmt("Dropping EmojiReact from %s due to admin configuration", actor));
 7+        return -1;
 8+    }
 9+
10     const char *object, *utype;
11 
12     object = xs_dict_get(msg, "object");