snac2

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

commit b08d455295ed7b0d183f082d59a364de6f92f6a8
parent c8975f935a2c6b75520b8720edb0cce56a9549dc
Author: default <nobody@localhost>
Date:   Fri, 13 Oct 2023 08:33:57 +0200

mastoapi: show any boosted note, not only by us.

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

diff --git a/mastoapi.c b/mastoapi.c @@ -1309,10 +1309,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, /* is this message from a person we don't follow? */ if (strcmp(atto, snac1.actor) && !following_check(&snac1, atto)) { - /* if we didn't boost it, discard */ + /* discard if it was not boosted */ xs *idx = object_announces(id); - if (xs_list_in(idx, snac1.md5) == -1) + if (xs_list_len(idx) == 0) continue; }