From a221237637191d70c2e1d18aec82056501f8140f Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Sun, 4 Dec 2022 21:28:29 +0100 Subject: Pagination of the public and private page Use the query parameters skip and show to control what you can see, e.g. /alex/admin?skip=0&show=4 Don't use or save the timeline cache if either is set. The following functions were changed from accepting a single max parameter to accepting both skip and show: timeline_simple_list, timeline_list, index_list_desc. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 7048426..d3a461e 100644 --- a/main.c +++ b/main.c @@ -159,7 +159,7 @@ int main(int argc, char *argv[]) #endif xs *idx = xs_fmt("%s/private.idx", snac.basedir); - xs *list = index_list_desc(idx, 256); + xs *list = index_list_desc(idx, 0, 256); xs *tl = timeline_top_level(list); xs *j = xs_json_dumps_pp(tl, 4); -- cgit v1.2.3