diff options
author | default <nobody@localhost> | 2022-12-07 10:42:24 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-12-07 10:42:24 +0100 |
commit | df1b1510b77c1199d22941b9d271d100851a1bcb (patch) | |
tree | 6564215ca6457c2c5fa699f83e5656b1e086d1f6 | |
parent | 979389fd4719311fc3b2dc0dd68fc5f1e2428d37 (diff) |
Ask for just 1 more entry beyond the current page to test if there are more.
-rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1035,7 +1035,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * } else { xs *list = timeline_list(&snac, "public", skip, show); - xs *next = timeline_list(&snac, "public", skip + show, show); + xs *next = timeline_list(&snac, "public", skip + show, 1); *body = html_timeline(&snac, list, 1, skip, show, xs_list_len(next)); @@ -1064,7 +1064,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * snac_debug(&snac, 1, xs_fmt("building timeline")); xs *list = timeline_list(&snac, "private", skip, show); - xs *next = timeline_list(&snac, "private", skip + show, show); + xs *next = timeline_list(&snac, "private", skip + show, 1); *body = html_timeline(&snac, list, 0, skip, show, xs_list_len(next)); |