commit a28d717

default  ·  2023-04-27 06:35:23 +0000 UTC
parent 458d621
Hide hidden posts from timelines.
1 files changed,  +5, -1
+5, -1
 1@@ -1000,10 +1000,14 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2                 if (strcmp(xs_dict_get(msg, "type"), "Note") != 0)
 3                     continue;
 4 
 5-                /* drop notes from muted morons */
 6+                /* discard notes from muted morons */
 7                 if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))
 8                     continue;
 9 
10+                /* discard hidden notes */
11+                if (is_hidden(&snac1, xs_dict_get(msg, "id")))
12+                    continue;
13+
14                 /* convert the Note into a Mastodon status */
15                 xs *st = mastoapi_status(&snac1, msg);
16