From d61e1f6a8e5ad5b7c14b1f9ab3101496f3f9ea00 Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 22 Jun 2023 20:28:21 +0300 Subject: database: introduce read_feed_with_cursor read_feed_with_cursor allows using an arbitrary string as a cursor, unlike read_feed_with_limit, which uses last post's UID as a cursor. --- kittybox-rs/templates/src/templates.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kittybox-rs/templates/src/templates.rs') diff --git a/kittybox-rs/templates/src/templates.rs b/kittybox-rs/templates/src/templates.rs index 9826bfc..288669d 100644 --- a/kittybox-rs/templates/src/templates.rs +++ b/kittybox-rs/templates/src/templates.rs @@ -63,7 +63,7 @@ markup::define! { } } } - MainPage<'a>(feed: &'a serde_json::Value, card: &'a serde_json::Value, webring: bool) { + MainPage<'a>(feed: &'a serde_json::Value, card: &'a serde_json::Value, cursor: Option<&'a str>, webring: bool) { .sidebyside { @VCard { card } #dynamicstuff { @@ -90,7 +90,7 @@ markup::define! { } } } - @Feed { feed } + @Feed { feed, cursor: *cursor } } ErrorPage(code: StatusCode, msg: Option) { h1 { @format!("HTTP {code}") } -- cgit 1.4.1