commit b3bf64e
grunfink
·
2026-09-10 15:56:28 +0000 UTC
parent 33229bf
mastoapi: fixed muted words not being filtered.
1 files changed,
+5,
-0
+5,
-0
1@@ -1707,6 +1707,11 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
2 /* discard hidden notes */
3 if (is_hidden(user, id))
4 continue;
5+
6+ /* muted words? */
7+ if (words_in_content(xs_dict_get(user->config, "muted_words"),
8+ xs_dict_get(msg, "content")))
9+ continue;
10 }
11 else {
12 /* skip non-public messages */