From 03b5954a02c392c1741a1b04920dbcd60f4c425a Mon Sep 17 00:00:00 2001 From: default Date: Mon, 30 Dec 2024 22:28:34 +0100 Subject: Don't search for hashtags in non-public posts. --- activitypub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index d3475e8..771bd8c 100644 --- a/activitypub.c +++ b/activitypub.c @@ -708,7 +708,7 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg) /* does this message contain a tag we are following? */ const xs_list *fw_tags = xs_dict_get(snac->config, "followed_hashtags"); - if (xs_type(fw_tags) == XSTYPE_LIST) { + if (pub_msg && xs_type(fw_tags) == XSTYPE_LIST) { const xs_list *tags_in_msg = xs_dict_get(msg, "tag"); if (xs_type(tags_in_msg) == XSTYPE_LIST) { const xs_dict *te; -- cgit v1.2.3