diff options
| author | 2022-10-25 10:19:42 +0200 | |
|---|---|---|
| committer | 2022-10-25 10:19:42 +0200 | |
| commit | 2ab428ab0a147c5cb1044a10c6a9e22af40b525a (patch) | |
| tree | 08e51e40815192dabd3c1441822c32af9dcebf60 | |
| parent | Backport from xs. (diff) | |
| download | penes-snac2-2ab428ab0a147c5cb1044a10c6a9e22af40b525a.tar.gz penes-snac2-2ab428ab0a147c5cb1044a10c6a9e22af40b525a.tar.xz penes-snac2-2ab428ab0a147c5cb1044a10c6a9e22af40b525a.zip | |
Fixed leak.
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 5b2d981..a0b33ee 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1043,8 +1043,9 @@ int activitypub_get_handler(d_char *req, char *q_path, | |||
| 1043 | } | 1043 | } |
| 1044 | 1044 | ||
| 1045 | /* replace the 'orderedItems' with the latest posts */ | 1045 | /* replace the 'orderedItems' with the latest posts */ |
| 1046 | xs *items = xs_number_new(xs_list_len(list)); | ||
| 1046 | msg = xs_dict_set(msg, "orderedItems", list); | 1047 | msg = xs_dict_set(msg, "orderedItems", list); |
| 1047 | msg = xs_dict_set(msg, "totalItems", xs_number_new(xs_list_len(list))); | 1048 | msg = xs_dict_set(msg, "totalItems", items); |
| 1048 | } | 1049 | } |
| 1049 | else | 1050 | else |
| 1050 | if (strcmp(p_path, "followers") == 0 || strcmp(p_path, "following") == 0) { | 1051 | if (strcmp(p_path, "followers") == 0 || strcmp(p_path, "following") == 0) { |