summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-02-10 08:49:55 +0100
committerdefault <nobody@localhost>2024-02-10 08:49:55 +0100
commit151c5aa6ec4fb0f3b0e0d8ca62f9dc5ad27b14e0 (patch)
tree2f78be4a1377157a4f7e2bd514727e1e8589dcd2 /mastoapi.c
parent6ae84c9596c5785230e7a958f4d3d851db3bc547 (diff)
mastoapi: Skip non-public posts from timelines by tag.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 6c0eee0..000bdea 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1560,6 +1560,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
if (!valid_status(object_get_by_md5(md5, &msg)))
continue;
+ /* skip non-public messages */
+ if (!is_msg_public(msg))
+ continue;
+
/* convert the Note into a Mastodon status */
xs *st = mastoapi_status(NULL, msg);