diff options
| author | 2023-10-13 08:33:57 +0200 | |
|---|---|---|
| committer | 2023-10-13 08:33:57 +0200 | |
| commit | b08d455295ed7b0d183f082d59a364de6f92f6a8 (patch) | |
| tree | f7ed9d5d1cfe6c32fc427ae2d92833ad63afe3f0 /mastoapi.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-b08d455295ed7b0d183f082d59a364de6f92f6a8.tar.gz snac2-b08d455295ed7b0d183f082d59a364de6f92f6a8.tar.xz snac2-b08d455295ed7b0d183f082d59a364de6f92f6a8.zip | |
mastoapi: show any boosted note, not only by us.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1309,10 +1309,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1309 | 1309 | ||
| 1310 | /* is this message from a person we don't follow? */ | 1310 | /* is this message from a person we don't follow? */ |
| 1311 | if (strcmp(atto, snac1.actor) && !following_check(&snac1, atto)) { | 1311 | if (strcmp(atto, snac1.actor) && !following_check(&snac1, atto)) { |
| 1312 | /* if we didn't boost it, discard */ | 1312 | /* discard if it was not boosted */ |
| 1313 | xs *idx = object_announces(id); | 1313 | xs *idx = object_announces(id); |
| 1314 | 1314 | ||
| 1315 | if (xs_list_in(idx, snac1.md5) == -1) | 1315 | if (xs_list_len(idx) == 0) |
| 1316 | continue; | 1316 | continue; |
| 1317 | } | 1317 | } |
| 1318 | 1318 | ||