diff options
| author | 2024-12-04 05:51:17 +0100 | |
|---|---|---|
| committer | 2024-12-04 05:51:17 +0100 | |
| commit | 203db3b09e3ebf8677f75e83e5470b99c74de470 (patch) | |
| tree | 661c07f5529eb563f7d3e7775a10a5b0973476c9 /mastoapi.c | |
| parent | Version 2.65 RELEASED. (diff) | |
| download | snac2-203db3b09e3ebf8677f75e83e5470b99c74de470.tar.gz snac2-203db3b09e3ebf8677f75e83e5470b99c74de470.tar.xz snac2-203db3b09e3ebf8677f75e83e5470b99c74de470.zip | |
Fixed bug in blocked instance rejection.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -1349,6 +1349,9 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn | |||
| 1349 | if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) | 1349 | if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) |
| 1350 | continue; | 1350 | continue; |
| 1351 | 1351 | ||
| 1352 | if (is_instance_blocked(id)) | ||
| 1353 | continue; | ||
| 1354 | |||
| 1352 | const char *from = NULL; | 1355 | const char *from = NULL; |
| 1353 | if (strcmp(type, "Page") == 0) | 1356 | if (strcmp(type, "Page") == 0) |
| 1354 | from = xs_dict_get(msg, "audience"); | 1357 | from = xs_dict_get(msg, "audience"); |