commit b6414bd

grunfink  ·  2026-01-06 14:00:45 +0000 UTC
parent 6c87610
mastoapi: hide EmojiReacts from muted actors and block instances.
1 files changed,  +4, -0
+4, -0
 1@@ -1171,6 +1171,10 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
 2                 const char *content = xs_dict_get(msg, "content");
 3                 const char *actor = xs_dict_get(msg, "actor");
 4                 const xs_list *contentl = xs_dict_get(sfrl, content);
 5+
 6+                if ((snac && is_muted(snac, actor)) || is_instance_blocked(actor))
 7+                    continue;
 8+
 9                 /* NOTE: idk when there are no actor, but i encountered that bug.
10                  * Probably because of one of my previous attempts.
11                  * Keeping this just in case, can remove later */