mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Fixed leak.
This commit is contained in:
parent
fa870ab358
commit
2ab428ab0a
@ -1043,8 +1043,9 @@ int activitypub_get_handler(d_char *req, char *q_path,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* replace the 'orderedItems' with the latest posts */
|
/* replace the 'orderedItems' with the latest posts */
|
||||||
|
xs *items = xs_number_new(xs_list_len(list));
|
||||||
msg = xs_dict_set(msg, "orderedItems", list);
|
msg = xs_dict_set(msg, "orderedItems", list);
|
||||||
msg = xs_dict_set(msg, "totalItems", xs_number_new(xs_list_len(list)));
|
msg = xs_dict_set(msg, "totalItems", items);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (strcmp(p_path, "followers") == 0 || strcmp(p_path, "following") == 0) {
|
if (strcmp(p_path, "followers") == 0 || strcmp(p_path, "following") == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user