From 093f4af2827dab26785e788dc0d49d54308239b5 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 8 Mar 2024 05:41:08 +0100 Subject: Shortened the maximum conversation levels. Set to a compilation define in MAX_CONVERSATION_LEVELS. --- activitypub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index 162324e..f754ee0 100644 --- a/activitypub.c +++ b/activitypub.c @@ -310,7 +310,7 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level) { int status = 0; - if (level < 256 && !xs_is_null(*id)) { + if (level < MAX_CONVERSATION_LEVELS && !xs_is_null(*id)) { xs *msg = NULL; /* is the object already there? */ -- cgit v1.2.3