diff options
| author | 2023-07-18 09:51:59 +0200 | |
|---|---|---|
| committer | 2023-07-18 09:51:59 +0200 | |
| commit | 6e5c7d4a4be51b955a6910cc5dda74123317ad65 (patch) | |
| tree | bab53cbd95bfd75c3bd53dc167b6d4251f4d0f4c | |
| parent | Version 2.38 RELEASED. (diff) | |
| download | snac2-6e5c7d4a4be51b955a6910cc5dda74123317ad65.tar.gz snac2-6e5c7d4a4be51b955a6910cc5dda74123317ad65.tar.xz snac2-6e5c7d4a4be51b955a6910cc5dda74123317ad65.zip | |
Increased recursion level for timeline_request().
| -rw-r--r-- | activitypub.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index f251811..0b16f7d 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -151,7 +151,7 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level) | |||
| 151 | { | 151 | { |
| 152 | int status = 0; | 152 | int status = 0; |
| 153 | 153 | ||
| 154 | if (!xs_is_null(*id)) { | 154 | if (level < 256 && !xs_is_null(*id)) { |
| 155 | xs *msg = NULL; | 155 | xs *msg = NULL; |
| 156 | 156 | ||
| 157 | /* is the object already there? */ | 157 | /* is the object already there? */ |
| @@ -206,8 +206,7 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level) | |||
| 206 | timeline_add(snac, nid, object); | 206 | timeline_add(snac, nid, object); |
| 207 | 207 | ||
| 208 | /* recurse! */ | 208 | /* recurse! */ |
| 209 | if (level < 32) | 209 | timeline_request(snac, &in_reply_to, NULL, level + 1); |
| 210 | timeline_request(snac, &in_reply_to, NULL, level + 1); | ||
| 211 | } | 210 | } |
| 212 | } | 211 | } |
| 213 | } | 212 | } |