diff options
| author | grunfink <grunfink@comam.es> | 2026-01-06 14:26:57 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-01-06 14:26:57 +0100 |
| commit | 6c876107aba84d2c066b62929ab094bf6d92ef71 (patch) | |
| tree | e00c61090d569f6254de5a7d133c64ad4272150d /html.c | |
| parent | b84b92df74ed0e8f92617e37fdcb2f0aba2138cf (diff) | |
Hide EmojiReacts from muted actors and blocked instances.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |