commit 6e5c7d4

default  ·  2023-07-18 07:51:59 +0000 UTC
parent e6d5ce2
Increased recursion level for timeline_request().
1 files changed,  +2, -3
+2, -3
 1@@ -151,7 +151,7 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level)
 2 {
 3     int status = 0;
 4 
 5-    if (!xs_is_null(*id)) {
 6+    if (level < 256 && !xs_is_null(*id)) {
 7         xs *msg = NULL;
 8 
 9         /* is the object already there? */
10@@ -206,8 +206,7 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level)
11                     timeline_add(snac, nid, object);
12 
13                     /* recurse! */
14-                    if (level < 32)
15-                        timeline_request(snac, &in_reply_to, NULL, level + 1);
16+                    timeline_request(snac, &in_reply_to, NULL, level + 1);
17                 }
18             }
19         }