aboutsummaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-28 01:08:17 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-28 01:08:17 +0100
commit2a5d882fac63f8572ee95f85447b180f5b17f57a (patch)
tree9fa6a7be720a27373bb35ae91041540d459b6ec7 /server/src
parent4841c08da8afa3e42c354fbc325ce56b6f997079 (diff)
downloadjellything-2a5d882fac63f8572ee95f85447b180f5b17f57a.tar
jellything-2a5d882fac63f8572ee95f85447b180f5b17f57a.tar.bz2
jellything-2a5d882fac63f8572ee95f85447b180f5b17f57a.tar.zst
fix cont token check in value sort
Diffstat (limited to 'server/src')
-rw-r--r--server/src/ui/items.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/server/src/ui/items.rs b/server/src/ui/items.rs
index 6071bcc..bd4b759 100644
--- a/server/src/ui/items.rs
+++ b/server/src/ui/items.rs
@@ -11,7 +11,7 @@ use jellycommon::{
jellyobject::{EMPTY, Path},
*,
};
-use jellydb::{Filter, Query};
+use jellydb::{Filter, MultiBehaviour, Query, Sort, SortOrder, ValueSort};
use jellyui::components::items::Items;
use rocket::{get, response::content::RawHtml};
use std::borrow::Cow;
@@ -28,7 +28,16 @@ pub fn r_items(ri: RequestInfo, cont: Option<&str>) -> MyResult<RawHtml<String>>
ri.state.database.transaction(&mut |txn| {
let rows = txn
.query(Query {
- filter: Filter::Match(Path(vec![NO_KIND.0]), KIND_CHANNEL.into()),
+ filter: Filter::All(vec![
+ Filter::Match(Path(vec![NO_KIND.0]), KIND_VIDEO.into()),
+ Filter::Match(Path(vec![NO_VISIBILITY.0]), VISI_VISIBLE.into()),
+ ]),
+ sort: Sort::Value(ValueSort {
+ path: Path(vec![NO_RELEASEDATE.0]),
+ multi: MultiBehaviour::First,
+ order: SortOrder::Descending,
+ offset: None,
+ }),
continuation: cont_in.clone(),
..Default::default()
})?