mastoapi: fixed muted words not being filtered.
This commit is contained in:
1 parent
33229bf858
commit
b3bf64ee19
1 file changed
+5
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user