summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authorGravatar default2024-02-05 19:34:27 +0100
committerGravatar default2024-02-05 19:34:27 +0100
commit4e35b4b865512b0616f1b9dd437ad12cf2953848 (patch)
tree194e305427675c9ac06cab23c45f7553d83a1673 /mastoapi.c
parentBumped version. (diff)
downloadsnac2-4e35b4b865512b0616f1b9dd437ad12cf2953848.tar.gz
snac2-4e35b4b865512b0616f1b9dd437ad12cf2953848.tar.xz
snac2-4e35b4b865512b0616f1b9dd437ad12cf2953848.zip
Added paging to notify_list(), and use it in the notifications page.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index f1af7ba..267f842 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1542,7 +1542,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
1542 else 1542 else
1543 if (strcmp(cmd, "/v1/notifications") == 0) { /** **/ 1543 if (strcmp(cmd, "/v1/notifications") == 0) { /** **/
1544 if (logged_in) { 1544 if (logged_in) {
1545 xs *l = notify_list(&snac1); 1545 xs *l = notify_list(&snac1, 0, 64);
1546 xs *out = xs_list_new(); 1546 xs *out = xs_list_new();
1547 xs_list *p = l; 1547 xs_list *p = l;
1548 xs_dict *v; 1548 xs_dict *v;