aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-26 12:47:40 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-26 12:47:40 +0100
commit4ba86694e393c61107e27c4127efc0455b329524 (patch)
treeca6ab8bf0ccae5c26180247239fffde261a2d3ba /server
parenteb6648770e7de66ccafe44d114ecbb2c1eaf444d (diff)
downloadjellything-4ba86694e393c61107e27c4127efc0455b329524.tar
jellything-4ba86694e393c61107e27c4127efc0455b329524.tar.bz2
jellything-4ba86694e393c61107e27c4127efc0455b329524.tar.zst
db continuation
Diffstat (limited to 'server')
-rw-r--r--server/src/ui/items.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/ui/items.rs b/server/src/ui/items.rs
index 6383830..286fc01 100644
--- a/server/src/ui/items.rs
+++ b/server/src/ui/items.rs
@@ -25,16 +25,14 @@ pub fn r_items(ri: RequestInfo, cont: Option<&str>) -> MyResult<UiResponse> {
ri.state.database.transaction(&mut |txn| {
let rows = txn
.query(Query {
- filter: Filter::Has(Path(vec![NO_SLUG.0])),
+ filter: Filter::Match(Path(vec![NO_KIND.0]), KIND_CHANNEL.into()),
continuation: cont.clone(),
..Default::default()
})?
.take(64)
.collect::<Result<Vec<_>, _>>()?;
- let mut list = OBB::new()
- .with(NODELIST_DISPLAYSTYLE, NLSTYLE_GRID)
- .with(NODELIST_TITLE, "items");
+ let mut list = OBB::new().with(NODELIST_DISPLAYSTYLE, NLSTYLE_GRID);
let mut iterstate = Vec::new();
for (r, is) in rows {