diff options
| author | 2024-12-30 22:28:34 +0100 | |
|---|---|---|
| committer | 2024-12-30 22:28:34 +0100 | |
| commit | 03b5954a02c392c1741a1b04920dbcd60f4c425a (patch) | |
| tree | 781d1f6ff08aa70b0e00ce19e8675aef6e2e3912 /activitypub.c | |
| parent | Always enqueue a message into the local shared-inbox. (diff) | |
| download | penes-snac2-03b5954a02c392c1741a1b04920dbcd60f4c425a.tar.gz penes-snac2-03b5954a02c392c1741a1b04920dbcd60f4c425a.tar.xz penes-snac2-03b5954a02c392c1741a1b04920dbcd60f4c425a.zip | |
Don't search for hashtags in non-public posts.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 708 | 708 | ||
| 709 | /* does this message contain a tag we are following? */ | 709 | /* does this message contain a tag we are following? */ |
| 710 | const xs_list *fw_tags = xs_dict_get(snac->config, "followed_hashtags"); | 710 | const xs_list *fw_tags = xs_dict_get(snac->config, "followed_hashtags"); |
| 711 | if (xs_type(fw_tags) == XSTYPE_LIST) { | 711 | if (pub_msg && xs_type(fw_tags) == XSTYPE_LIST) { |
| 712 | const xs_list *tags_in_msg = xs_dict_get(msg, "tag"); | 712 | const xs_list *tags_in_msg = xs_dict_get(msg, "tag"); |
| 713 | if (xs_type(tags_in_msg) == XSTYPE_LIST) { | 713 | if (xs_type(tags_in_msg) == XSTYPE_LIST) { |
| 714 | const xs_dict *te; | 714 | const xs_dict *te; |