diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-28 00:24:52 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-28 00:24:52 +0100 |
| commit | 4841c08da8afa3e42c354fbc325ce56b6f997079 (patch) | |
| tree | 3574919fc3e631e76e9e8a136c692f2a614e80b2 /server/src/ui/assets.rs | |
| parent | 7930d543a2aa68d4ad2958605827d7eb1baa91f8 (diff) | |
| download | jellything-4841c08da8afa3e42c354fbc325ce56b6f997079.tar jellything-4841c08da8afa3e42c354fbc325ce56b6f997079.tar.bz2 jellything-4841c08da8afa3e42c354fbc325ce56b6f997079.tar.zst | |
bad pagination
Diffstat (limited to 'server/src/ui/assets.rs')
| -rw-r--r-- | server/src/ui/assets.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/server/src/ui/assets.rs b/server/src/ui/assets.rs index 5903b83..089f293 100644 --- a/server/src/ui/assets.rs +++ b/server/src/ui/assets.rs @@ -51,32 +51,3 @@ pub async fn r_image_fallback_person( })?; Ok(Redirect::found(u_image(&path, size.unwrap_or(2048)))) } - -// #[get("/n/<id>/image/<slot>?<size>")] -// pub async fn r_item_poster( -// session: A<Session>, -// id: A<NodeID>, -// slot: &str, -// size: Option<usize>, -// ) -> MyResult<Redirect> { -// let slot = PictureSlot::from_str(slot).map_err(|_| anyhow!("slot invalid"))?; -// let node = get_node(&session.0, id.0, false, false, NodeFilterSort::default())?; -// let picture = node -// .node -// .pictures -// .get(&slot) -// .cloned() -// .ok_or(anyhow!("no pic todo"))?; -// Ok(Redirect::permanent(rocket::uri!(r_image(picture, size)))) -// } - -// #[get("/n/<id>/thumbnail?<t>&<size>")] -// pub async fn r_node_thumbnail( -// session: A<Session>, -// id: A<NodeID>, -// t: f64, -// size: Option<usize>, -// ) -> MyResult<Redirect> { -// let picture = get_node_thumbnail(&session.0, id.0, t).await?; -// Ok(Redirect::permanent(rocket::uri!(r_image(picture, size)))) -// } |