commit 151c5aa

default  ·  2024-02-10 07:49:55 +0000 UTC
parent 6ae84c9
mastoapi: Skip non-public posts from timelines by tag.
1 files changed,  +4, -0
+4, -0
 1@@ -1560,6 +1560,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2             if (!valid_status(object_get_by_md5(md5, &msg)))
 3                 continue;
 4 
 5+            /* skip non-public messages */
 6+            if (!is_msg_public(msg))
 7+                continue;
 8+
 9             /* convert the Note into a Mastodon status */
10             xs *st = mastoapi_status(NULL, msg);
11