commit e45ffa0

default  ·  2023-06-11 08:41:19 +0000 UTC
parent 1d9e734
Use a different variable name to store the id of 'embedded' children.
1 files changed,  +3, -3
+3, -3
 1@@ -230,12 +230,12 @@ void timeline_request_replies(snac *user, const char *id)
 2                         while (xs_list_iter(&items, &v)) {
 3                             if (xs_type(v) == XSTYPE_DICT) {
 4                                 /* not an id, but the object itself (!) */
 5-                                const char *id = xs_dict_get(v, "id");
 6+                                const char *c_id = xs_dict_get(v, "id");
 7 
 8                                 if (!xs_is_null(id)) {
 9-                                    snac_debug(user, 0, xs_fmt("embedded reply %s", id));
10+                                    snac_debug(user, 0, xs_fmt("embedded reply %s", c_id));
11 
12-                                    object_add(id, v);
13+                                    object_add(c_id, v);
14 
15                                     /* get its own children */
16                                     timeline_request_replies(user, v);