aboutsummaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-12-04 05:51:17 +0100
committerdefault <nobody@localhost>2024-12-04 05:51:17 +0100
commit203db3b09e3ebf8677f75e83e5470b99c74de470 (patch)
tree661c07f5529eb563f7d3e7775a10a5b0973476c9 /mastoapi.c
parent22d05cded1f1cb23b90ded9f9c1ad24b02718c2b (diff)
Fixed bug in blocked instance rejection.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index a529990..0332629 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1349,6 +1349,9 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
if (!xs_match(type, POSTLIKE_OBJECT_TYPE))
continue;
+ if (is_instance_blocked(id))
+ continue;
+
const char *from = NULL;
if (strcmp(type, "Page") == 0)
from = xs_dict_get(msg, "audience");