diff options
| author | 2023-06-28 19:16:58 +0200 | |
|---|---|---|
| committer | 2023-06-28 19:16:58 +0200 | |
| commit | 9a47a7c2d1935e41196d2fcc9dd48c70d03c64cd (patch) | |
| tree | e96c610a6ef38b6d7de23f47c506d53026cd2fbc /mastoapi.c | |
| parent | Merge branch 'master' of triptico.com:git/snac2 (diff) | |
| download | snac2-9a47a7c2d1935e41196d2fcc9dd48c70d03c64cd.tar.gz snac2-9a47a7c2d1935e41196d2fcc9dd48c70d03c64cd.tar.xz snac2-9a47a7c2d1935e41196d2fcc9dd48c70d03c64cd.zip | |
Don't discard notes from people we don't follow in mastoapi.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -1208,10 +1208,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1208 | if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0) | 1208 | if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0) |
| 1209 | continue; | 1209 | continue; |
| 1210 | 1210 | ||
| 1211 | #if 0 | ||
| 1211 | /* discard notes from people we don't follow with no boosts */ | 1212 | /* discard notes from people we don't follow with no boosts */ |
| 1212 | if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) && | 1213 | if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) && |
| 1213 | object_announces_len(xs_dict_get(msg, "id")) == 0) | 1214 | object_announces_len(xs_dict_get(msg, "id")) == 0) |
| 1214 | continue; | 1215 | continue; |
| 1216 | #endif | ||
| 1215 | 1217 | ||
| 1216 | /* discard notes from muted morons */ | 1218 | /* discard notes from muted morons */ |
| 1217 | if (is_muted(&snac1, xs_dict_get(msg, "attributedTo"))) | 1219 | if (is_muted(&snac1, xs_dict_get(msg, "attributedTo"))) |