commit b08d455

default  ·  2023-10-13 06:33:57 +0000 UTC
parent c8975f9
mastoapi: show any boosted note, not only by us.
1 files changed,  +2, -2
+2, -2
 1@@ -1309,10 +1309,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2 
 3                 /* is this message from a person we don't follow? */
 4                 if (strcmp(atto, snac1.actor) && !following_check(&snac1, atto)) {
 5-                    /* if we didn't boost it, discard */
 6+                    /* discard if it was not boosted */
 7                     xs *idx = object_announces(id);
 8 
 9-                    if (xs_list_in(idx, snac1.md5) == -1)
10+                    if (xs_list_len(idx) == 0)
11                         continue;
12                 }
13