diff options
| author | 2023-06-10 14:07:58 +0800 | |
|---|---|---|
| committer | 2023-06-10 14:07:58 +0800 | |
| commit | 56c44eb455b94fb7229d04cec1d3229b3808d3d8 (patch) | |
| tree | 758f008c434f94a84b626724377b8ccc231b3990 | |
| parent | Ignore timestamps in mastoapi_id when filtering entries (diff) | |
| download | snac2-56c44eb455b94fb7229d04cec1d3229b3808d3d8.tar.gz snac2-56c44eb455b94fb7229d04cec1d3229b3808d3d8.tar.xz snac2-56c44eb455b94fb7229d04cec1d3229b3808d3d8.zip | |
Ignore non-followed users' notes without boosts in private timeline
| -rw-r--r-- | mastoapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -1200,6 +1200,11 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1200 | if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0) | 1200 | if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0) |
| 1201 | continue; | 1201 | continue; |
| 1202 | 1202 | ||
| 1203 | /* discard notes from people we don't follow with no boosts */ | ||
| 1204 | if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) && | ||
| 1205 | object_announces_len(xs_dict_get(msg, "id")) == 0) | ||
| 1206 | continue; | ||
| 1207 | |||
| 1203 | /* discard notes from muted morons */ | 1208 | /* discard notes from muted morons */ |
| 1204 | if (is_muted(&snac1, xs_dict_get(msg, "attributedTo"))) | 1209 | if (is_muted(&snac1, xs_dict_get(msg, "attributedTo"))) |
| 1205 | continue; | 1210 | continue; |