Browse Source

mastoapi: Skip non-public posts from timelines by tag.

default 1 year ago
parent
commit
151c5aa6ec
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mastoapi.c

+ 4 - 0
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);