commit 56c44eb
poesty
·
2023-06-10 06:07:58 +0000 UTC
parent 8619854
Ignore non-followed users' notes without boosts in private timeline
1 files changed,
+5,
-0
+5,
-0
1@@ -1200,6 +1200,11 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2 if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0)
3 continue;
4
5+ /* discard notes from people we don't follow with no boosts */
6+ if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) &&
7+ object_announces_len(xs_dict_get(msg, "id")) == 0)
8+ continue;
9+
10 /* discard notes from muted morons */
11 if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))
12 continue;