diff options
| -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) | |||
| 412 | "\"children\": []," | 412 | "\"children\": []," |
| 413 | "\"liked_by\": []," | 413 | "\"liked_by\": []," |
| 414 | "\"announced_by\": []," | 414 | "\"announced_by\": []," |
| 415 | "\"version\": \"snac/2.x\"," | ||
| 415 | "\"parent\": null" | 416 | "\"parent\": null" |
| 416 | "}"); | 417 | "}"); |
| 417 | 418 | ||
| @@ -198,7 +198,7 @@ void srv_archive(char *direction, char *req, char *payload, int p_size, | |||
| 198 | body_fn = xs_fmt("%s/body.json", dir); | 198 | body_fn = xs_fmt("%s/body.json", dir); |
| 199 | 199 | ||
| 200 | if ((f = fopen(body_fn, "w")) != NULL) { | 200 | if ((f = fopen(body_fn, "w")) != NULL) { |
| 201 | xs *v1 = xs_json_loads(payload); | 201 | xs *v1 = xs_json_loads(body); |
| 202 | xs *j1 = xs_json_dumps_pp(v1, 4); | 202 | xs *j1 = xs_json_dumps_pp(v1, 4); |
| 203 | 203 | ||
| 204 | if (j1 != NULL) | 204 | if (j1 != NULL) |