summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index f88b6d1..a109192 100644
--- a/main.c
+++ b/main.c
@@ -156,12 +156,21 @@ int main(int argc, char *argv[])
156 } 156 }
157 157
158 if (strcmp(cmd, "timeline") == 0) { 158 if (strcmp(cmd, "timeline") == 0) {
159#if 0
159 xs *list = local_list(&snac, XS_ALL); 160 xs *list = local_list(&snac, XS_ALL);
160 xs *body = html_timeline(&snac, list, 1); 161 xs *body = html_timeline(&snac, list, 1);
161 162
162 printf("%s\n", body); 163 printf("%s\n", body);
163 user_free(&snac); 164 user_free(&snac);
164 srv_free(); 165 srv_free();
166#endif
167
168 xs *idx = xs_fmt("%s/private.idx", snac.basedir);
169 xs *list = index_list_desc(idx, 256);
170 xs *tl = timeline_top_level(&snac, list);
171
172 xs *j = xs_json_dumps_pp(tl, 4);
173 printf("%s\n", j);
165 174
166 return 0; 175 return 0;
167 } 176 }