mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-24 00:23:38 +00:00
Fixed bug in srv_archive().
This commit is contained in:
parent
4f328eec1f
commit
5f4379d434
2 changed files with 2 additions and 1 deletions
1
data.c
1
data.c
|
@ -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"
|
||||
"}");
|
||||
|
||||
|
|
2
snac.c
2
snac.c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue