From b6414bd2c48dd54699f3bfbdae10bb0209841f0c Mon Sep 17 00:00:00 2001 From: grunfink Date: Tue, 6 Jan 2026 15:00:45 +0100 Subject: mastoapi: hide EmojiReacts from muted actors and block instances. --- mastoapi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mastoapi.c') 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 */ -- cgit v1.2.3