aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-01-06 15:00:45 +0100
committergrunfink <grunfink@comam.es>2026-01-06 15:00:45 +0100
commitb6414bd2c48dd54699f3bfbdae10bb0209841f0c (patch)
treee6c15f1a2346e69500d8201a8813384843e44c02
parent6c876107aba84d2c066b62929ab094bf6d92ef71 (diff)
mastoapi: hide EmojiReacts from muted actors and block instances.
-rw-r--r--mastoapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 0cadf2c..52aca08 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1171,6 +1171,10 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
const char *content = xs_dict_get(msg, "content");
const char *actor = xs_dict_get(msg, "actor");
const xs_list *contentl = xs_dict_get(sfrl, content);
+
+ if ((snac && is_muted(snac, actor)) || is_instance_blocked(actor))
+ continue;
+
/* NOTE: idk when there are no actor, but i encountered that bug.
* Probably because of one of my previous attempts.
* Keeping this just in case, can remove later */