mastoapi: fixed muted words not being filtered.

This commit is contained in:
grunfink committed 2026-09-10 17:56:28 +02:00
1 parent 33229bf858
commit b3bf64ee19
1 file changed
+5
+5
View File
@@ -1707,6 +1707,11 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
/* discard hidden notes */
if (is_hidden(user, id))
continue;
/* muted words? */
if (words_in_content(xs_dict_get(user->config, "muted_words"),
xs_dict_get(msg, "content")))
continue;
}
else {
/* skip non-public messages */