diff options
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)))) -// } |