diff options
| author | 2022-12-07 10:42:24 +0100 | |
|---|---|---|
| committer | 2022-12-07 10:42:24 +0100 | |
| commit | df1b1510b77c1199d22941b9d271d100851a1bcb (patch) | |
| tree | 6564215ca6457c2c5fa699f83e5656b1e086d1f6 | |
| parent | Fixed last minute typo. (diff) | |
| download | snac2-df1b1510b77c1199d22941b9d271d100851a1bcb.tar.gz snac2-df1b1510b77c1199d22941b9d271d100851a1bcb.tar.xz snac2-df1b1510b77c1199d22941b9d271d100851a1bcb.zip | |
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 * | |||
| 1035 | } | 1035 | } |
| 1036 | else { | 1036 | else { |
| 1037 | xs *list = timeline_list(&snac, "public", skip, show); | 1037 | xs *list = timeline_list(&snac, "public", skip, show); |
| 1038 | xs *next = timeline_list(&snac, "public", skip + show, show); | 1038 | xs *next = timeline_list(&snac, "public", skip + show, 1); |
| 1039 | 1039 | ||
| 1040 | *body = html_timeline(&snac, list, 1, skip, show, xs_list_len(next)); | 1040 | *body = html_timeline(&snac, list, 1, skip, show, xs_list_len(next)); |
| 1041 | 1041 | ||
| @@ -1064,7 +1064,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * | |||
| 1064 | snac_debug(&snac, 1, xs_fmt("building timeline")); | 1064 | snac_debug(&snac, 1, xs_fmt("building timeline")); |
| 1065 | 1065 | ||
| 1066 | xs *list = timeline_list(&snac, "private", skip, show); | 1066 | xs *list = timeline_list(&snac, "private", skip, show); |
| 1067 | xs *next = timeline_list(&snac, "private", skip + show, show); | 1067 | xs *next = timeline_list(&snac, "private", skip + show, 1); |
| 1068 | 1068 | ||
| 1069 | *body = html_timeline(&snac, list, 0, skip, show, xs_list_len(next)); | 1069 | *body = html_timeline(&snac, list, 0, skip, show, xs_list_len(next)); |
| 1070 | 1070 | ||