summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-08 05:41:08 +0100
committerdefault <nobody@localhost>2024-03-08 05:41:08 +0100
commit093f4af2827dab26785e788dc0d49d54308239b5 (patch)
tree8b11d7bf94934136bf886a7522d22f4c16a0a355 /activitypub.c
parentc2fb2a4034f499cc44227b6485881ba9127c2f01 (diff)
Shortened the maximum conversation levels.
Set to a compilation define in MAX_CONVERSATION_LEVELS.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
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? */