From 4e35b4b865512b0616f1b9dd437ad12cf2953848 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 5 Feb 2024 19:34:27 +0100 Subject: Added paging to notify_list(), and use it in the notifications page. --- html.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 85ec786..0508784 100644 --- a/html.c +++ b/html.c @@ -2135,9 +2135,9 @@ xs_str *html_people(snac *user) } -xs_str *html_notifications(snac *user) +xs_str *html_notifications(snac *user, int skip, int show) { - xs *n_list = notify_list(user); + xs *n_list = notify_list(user, skip, show); xs *n_time = notify_check_time(user, 0); xs_html *body = html_user_body(user, 0); @@ -2428,7 +2428,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, status = 401; } else { - *body = html_notifications(&snac); + *body = html_notifications(&snac, skip, show); *b_size = strlen(*body); status = 200; } -- cgit v1.2.3