mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Hide hidden posts from timelines.
This commit is contained in:
parent
458d6217b4
commit
a28d717da5
1 changed files with 5 additions and 1 deletions
|
@ -1000,10 +1000,14 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
||||||
if (strcmp(xs_dict_get(msg, "type"), "Note") != 0)
|
if (strcmp(xs_dict_get(msg, "type"), "Note") != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* drop notes from muted morons */
|
/* discard notes from muted morons */
|
||||||
if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))
|
if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* discard hidden notes */
|
||||||
|
if (is_hidden(&snac1, xs_dict_get(msg, "id")))
|
||||||
|
continue;
|
||||||
|
|
||||||
/* convert the Note into a Mastodon status */
|
/* convert the Note into a Mastodon status */
|
||||||
xs *st = mastoapi_status(&snac1, msg);
|
xs *st = mastoapi_status(&snac1, msg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue