diff options
| author | 2026-01-06 14:26:57 +0100 | |
|---|---|---|
| committer | 2026-01-06 14:26:57 +0100 | |
| commit | 6c876107aba84d2c066b62929ab094bf6d92ef71 (patch) | |
| tree | e00c61090d569f6254de5a7d133c64ad4272150d | |
| parent | Version 2.86 RELEASED. (diff) | |
| download | snac2-6c876107aba84d2c066b62929ab094bf6d92ef71.tar.gz snac2-6c876107aba84d2c066b62929ab094bf6d92ef71.tar.xz snac2-6c876107aba84d2c066b62929ab094bf6d92ef71.zip | |
Hide EmojiReacts from muted actors and blocked instances.
| -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, | |||
| 2460 | const char *content = xs_dict_get(m, "content"); | 2460 | const char *content = xs_dict_get(m, "content"); |
| 2461 | const char *actor = xs_dict_get(m, "actor"); | 2461 | const char *actor = xs_dict_get(m, "actor"); |
| 2462 | const xs_list *contentl = xs_dict_get(sfrl, content); | 2462 | const xs_list *contentl = xs_dict_get(sfrl, content); |
| 2463 | |||
| 2464 | if (is_muted(user, actor) || is_instance_blocked(actor)) | ||
| 2465 | continue; | ||
| 2466 | |||
| 2463 | xs *actors = xs_list_new(); | 2467 | xs *actors = xs_list_new(); |
| 2464 | actors = xs_list_append(actors, actor); | 2468 | actors = xs_list_append(actors, actor); |
| 2465 | char me = actor && user && strcmp(actor, user->actor) == 0; | 2469 | char me = actor && user && strcmp(actor, user->actor) == 0; |