diff options
| author | 2024-02-10 08:49:55 +0100 | |
|---|---|---|
| committer | 2024-02-10 08:49:55 +0100 | |
| commit | 151c5aa6ec4fb0f3b0e0d8ca62f9dc5ad27b14e0 (patch) | |
| tree | 2f78be4a1377157a4f7e2bd514727e1e8589dcd2 /mastoapi.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-151c5aa6ec4fb0f3b0e0d8ca62f9dc5ad27b14e0.tar.gz snac2-151c5aa6ec4fb0f3b0e0d8ca62f9dc5ad27b14e0.tar.xz snac2-151c5aa6ec4fb0f3b0e0d8ca62f9dc5ad27b14e0.zip | |
mastoapi: Skip non-public posts from timelines by tag.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1560,6 +1560,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1560 | if (!valid_status(object_get_by_md5(md5, &msg))) | 1560 | if (!valid_status(object_get_by_md5(md5, &msg))) |
| 1561 | continue; | 1561 | continue; |
| 1562 | 1562 | ||
| 1563 | /* skip non-public messages */ | ||
| 1564 | if (!is_msg_public(msg)) | ||
| 1565 | continue; | ||
| 1566 | |||
| 1563 | /* convert the Note into a Mastodon status */ | 1567 | /* convert the Note into a Mastodon status */ |
| 1564 | xs *st = mastoapi_status(NULL, msg); | 1568 | xs *st = mastoapi_status(NULL, msg); |
| 1565 | 1569 | ||