mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Increased recursion level for timeline_request().
This commit is contained in:
parent
e6d5ce2654
commit
6e5c7d4a4b
1 changed files with 2 additions and 3 deletions
|
@ -151,7 +151,7 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level)
|
|||
{
|
||||
int status = 0;
|
||||
|
||||
if (!xs_is_null(*id)) {
|
||||
if (level < 256 && !xs_is_null(*id)) {
|
||||
xs *msg = NULL;
|
||||
|
||||
/* is the object already there? */
|
||||
|
@ -206,8 +206,7 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level)
|
|||
timeline_add(snac, nid, object);
|
||||
|
||||
/* recurse! */
|
||||
if (level < 32)
|
||||
timeline_request(snac, &in_reply_to, NULL, level + 1);
|
||||
timeline_request(snac, &in_reply_to, NULL, level + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue