Fix image boolean options

This commit is contained in:
Joscha 2025-09-14 20:08:59 +02:00
parent 746d4b9fee
commit 8dbcb182b2

View file

@ -116,13 +116,13 @@ pub async fn post(server: State<Server>, mut multipart: Multipart) -> somehow::R
algo = field.text().await?; algo = field.text().await?;
} }
Some("rotate") => { Some("rotate") => {
rotate = !field.text().await?.is_empty(); rotate = bool_from_str(&field.text().await?)?;
} }
Some("bright") => { Some("bright") => {
bright = !field.text().await?.is_empty(); bright = bool_from_str(&field.text().await?)?;
} }
Some("seamless") => { Some("seamless") => {
data.seamless = !field.text().await?.is_empty(); data.seamless = bool_from_str(&field.text().await?)?;
} }
Some("feed") => { Some("feed") => {
data.feed = bool_from_str(&field.text().await?)?; data.feed = bool_from_str(&field.text().await?)?;