commit 03b5954
default
·
2024-12-30 21:28:34 +0000 UTC
parent 7131a5c
Don't search for hashtags in non-public posts.
1 files changed,
+1,
-1
+1,
-1
1@@ -708,7 +708,7 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
2
3 /* does this message contain a tag we are following? */
4 const xs_list *fw_tags = xs_dict_get(snac->config, "followed_hashtags");
5- if (xs_type(fw_tags) == XSTYPE_LIST) {
6+ if (pub_msg && xs_type(fw_tags) == XSTYPE_LIST) {
7 const xs_list *tags_in_msg = xs_dict_get(msg, "tag");
8 if (xs_type(tags_in_msg) == XSTYPE_LIST) {
9 const xs_dict *te;