commit df1b151

default  ·  2022-12-07 09:42:24 +0000 UTC
parent 979389f
Ask for just 1 more entry beyond the current page to test if there are more.
1 files changed,  +2, -2
M html.c
M html.c
+2, -2
 1@@ -1035,7 +1035,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
 2         }
 3         else {
 4             xs *list = timeline_list(&snac, "public", skip, show);
 5-            xs *next = timeline_list(&snac, "public", skip + show, show);
 6+            xs *next = timeline_list(&snac, "public", skip + show, 1);
 7 
 8             *body = html_timeline(&snac, list, 1, skip, show, xs_list_len(next));
 9 
10@@ -1064,7 +1064,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
11                 snac_debug(&snac, 1, xs_fmt("building timeline"));
12 
13                 xs *list = timeline_list(&snac, "private", skip, show);
14-                xs *next = timeline_list(&snac, "private", skip + show, show);
15+                xs *next = timeline_list(&snac, "private", skip + show, 1);
16 
17                 *body   = html_timeline(&snac, list, 0, skip, show, xs_list_len(next));
18