diff options
| author | 2023-06-11 10:41:19 +0200 | |
|---|---|---|
| committer | 2023-06-11 10:41:19 +0200 | |
| commit | e45ffa0fa2c23cc1717d1784a438abdc82c0890a (patch) | |
| tree | 34cfea7d1570d84c6a59165bdc8c759757321b41 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-e45ffa0fa2c23cc1717d1784a438abdc82c0890a.tar.gz snac2-e45ffa0fa2c23cc1717d1784a438abdc82c0890a.tar.xz snac2-e45ffa0fa2c23cc1717d1784a438abdc82c0890a.zip | |
Use a different variable name to store the id of 'embedded' children.
| -rw-r--r-- | activitypub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index 10e0e64..92914a2 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -230,12 +230,12 @@ void timeline_request_replies(snac *user, const char *id) | |||
| 230 | while (xs_list_iter(&items, &v)) { | 230 | while (xs_list_iter(&items, &v)) { |
| 231 | if (xs_type(v) == XSTYPE_DICT) { | 231 | if (xs_type(v) == XSTYPE_DICT) { |
| 232 | /* not an id, but the object itself (!) */ | 232 | /* not an id, but the object itself (!) */ |
| 233 | const char *id = xs_dict_get(v, "id"); | 233 | const char *c_id = xs_dict_get(v, "id"); |
| 234 | 234 | ||
| 235 | if (!xs_is_null(id)) { | 235 | if (!xs_is_null(id)) { |
| 236 | snac_debug(user, 0, xs_fmt("embedded reply %s", id)); | 236 | snac_debug(user, 0, xs_fmt("embedded reply %s", c_id)); |
| 237 | 237 | ||
| 238 | object_add(id, v); | 238 | object_add(c_id, v); |
| 239 | 239 | ||
| 240 | /* get its own children */ | 240 | /* get its own children */ |
| 241 | timeline_request_replies(user, v); | 241 | timeline_request_replies(user, v); |