diff options
author | default <nobody@localhost> | 2022-11-26 18:52:51 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-26 18:52:51 +0100 |
commit | 2ad703e52028814a27918f5e840f734aa98adfd1 (patch) | |
tree | d910e0f050cf58f7c24dedf33ea839ef7506b2c9 /main.c | |
parent | 159a591f45f132df8d5007d3e64faf836aad3f66 (diff) |
timeline_top_level() works.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -156,12 +156,21 @@ int main(int argc, char *argv[]) } if (strcmp(cmd, "timeline") == 0) { +#if 0 xs *list = local_list(&snac, XS_ALL); xs *body = html_timeline(&snac, list, 1); printf("%s\n", body); user_free(&snac); srv_free(); +#endif + + xs *idx = xs_fmt("%s/private.idx", snac.basedir); + xs *list = index_list_desc(idx, 256); + xs *tl = timeline_top_level(&snac, list); + + xs *j = xs_json_dumps_pp(tl, 4); + printf("%s\n", j); return 0; } |