snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 9a47a7c2d1935e41196d2fcc9dd48c70d03c64cd
parent e0b870cfb5f45c81d3910478aac3b333e5a791ad
Author: default <nobody@localhost>
Date:   Wed, 28 Jun 2023 19:16:58 +0200

Don't discard notes from people we don't follow in mastoapi.

Diffstat:
Mmastoapi.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/mastoapi.c b/mastoapi.c @@ -1208,10 +1208,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0) continue; +#if 0 /* discard notes from people we don't follow with no boosts */ if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) && object_announces_len(xs_dict_get(msg, "id")) == 0) continue; +#endif /* discard notes from muted morons */ if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))