mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Ignore non-followed users' notes without boosts in private timeline
This commit is contained in:
parent
86198549e7
commit
56c44eb455
1 changed files with 5 additions and 0 deletions
|
@ -1200,6 +1200,11 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0)
|
||||
continue;
|
||||
|
||||
/* discard notes from people we don't follow with no boosts */
|
||||
if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) &&
|
||||
object_announces_len(xs_dict_get(msg, "id")) == 0)
|
||||
continue;
|
||||
|
||||
/* discard notes from muted morons */
|
||||
if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue