mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
mastoapi: Skip non-public posts from timelines by tag.
This commit is contained in:
parent
6ae84c9596
commit
151c5aa6ec
@ -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)))
|
if (!valid_status(object_get_by_md5(md5, &msg)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* skip non-public messages */
|
||||||
|
if (!is_msg_public(msg))
|
||||||
|
continue;
|
||||||
|
|
||||||
/* convert the Note into a Mastodon status */
|
/* convert the Note into a Mastodon status */
|
||||||
xs *st = mastoapi_status(NULL, msg);
|
xs *st = mastoapi_status(NULL, msg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user