commit 5a8c4ca
default
·
2024-03-25 10:44:19 +0000 UTC
parent abf4279
Added an additional check for blocked instances.
1 files changed,
+6,
-0
+6,
-0
1@@ -311,6 +311,12 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level)
2 if (level < MAX_CONVERSATION_LEVELS && !xs_is_null(*id)) {
3 xs *msg = NULL;
4
5+ /* from a blocked instance? discard and break */
6+ if (is_instance_blocked(*id)) {
7+ snac_debug(snac, 1, xs_fmt("timeline_request blocked instance %s", *id));
8+ return status;
9+ }
10+
11 /* is the object already there? */
12 if (!valid_status(object_get(*id, &msg))) {
13 /* no; download it */