diff options
author | default <nobody@localhost> | 2022-09-25 09:47:36 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-25 09:47:36 +0200 |
commit | 5f4379d434140505acc7205715fb5b729acc3b5a (patch) | |
tree | b96fc8dd7ed2d75e8f8f37ef31b0c54712c4d5fc | |
parent | 4f328eec1f428d4e87adeb4c4eaf1e81afe26913 (diff) |
Fixed bug in srv_archive().
-rw-r--r-- | data.c | 1 | ||||
-rw-r--r-- | snac.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -412,6 +412,7 @@ void timeline_add(snac *snac, char *id, char *o_msg, char *parent) "\"children\": []," "\"liked_by\": []," "\"announced_by\": []," + "\"version\": \"snac/2.x\"," "\"parent\": null" "}"); @@ -198,7 +198,7 @@ void srv_archive(char *direction, char *req, char *payload, int p_size, body_fn = xs_fmt("%s/body.json", dir); if ((f = fopen(body_fn, "w")) != NULL) { - xs *v1 = xs_json_loads(payload); + xs *v1 = xs_json_loads(body); xs *j1 = xs_json_dumps_pp(v1, 4); if (j1 != NULL) |