From eb6648770e7de66ccafe44d114ecbb2c1eaf444d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 26 Feb 2026 03:02:24 +0100 Subject: implement application-side continuation tokens --- common/src/api.rs | 1 + common/src/routes.rs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/src/api.rs b/common/src/api.rs index f791cd8..89cfe16 100644 --- a/common/src/api.rs +++ b/common/src/api.rs @@ -49,6 +49,7 @@ fields! { NODELIST_TITLE: &str = b"titl"; NODELIST_DISPLAYSTYLE: Tag = b"dsty"; NODELIST_ITEM: Object = b"item"; // multi + NODELIST_CONTINUATION: &str = b"cont"; MESSAGE_KIND: &str = b"kind"; MESSAGE_TEXT: &str = b"text"; diff --git a/common/src/routes.rs b/common/src/routes.rs index b76fc98..96f36e2 100644 --- a/common/src/routes.rs +++ b/common/src/routes.rs @@ -42,9 +42,8 @@ pub fn u_node_slug_progress(node: &str, time: f64) -> String { pub fn u_items() -> String { "/items".to_string() } -pub fn u_items_filter(page: usize) -> String { - // TODO - format!("/items?page={page}") +pub fn u_items_cont(cont: &str) -> String { + format!("/items?cont={cont}") } pub fn u_admin_users() -> String { "/admin/users".to_string() -- cgit v1.3