From 6c876107aba84d2c066b62929ab094bf6d92ef71 Mon Sep 17 00:00:00 2001 From: grunfink Date: Tue, 6 Jan 2026 14:26:57 +0100 Subject: Hide EmojiReacts from muted actors and blocked instances. --- html.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'html.c') diff --git a/html.c b/html.c index ef8816d..d5a59d8 100644 --- a/html.c +++ b/html.c @@ -2460,6 +2460,10 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, const char *content = xs_dict_get(m, "content"); const char *actor = xs_dict_get(m, "actor"); const xs_list *contentl = xs_dict_get(sfrl, content); + + if (is_muted(user, actor) || is_instance_blocked(actor)) + continue; + xs *actors = xs_list_new(); actors = xs_list_append(actors, actor); char me = actor && user && strcmp(actor, user->actor) == 0; -- cgit v1.2.3