diff --git a/src/tables.rs b/src/tables.rs index 374defb..83749a2 100644 --- a/src/tables.rs +++ b/src/tables.rs @@ -243,7 +243,8 @@ impl Image { pub async fn create(db: &mut Connection, mut image: TempFile<'_>, user: User) -> Status { let uuid = uuid::Uuid::new_v4().to_string(); - // this is bad. see any of maia arson crimew's articles as to why. + // TODO: implement checks to see if it's a png + // not doing this is bad. see any of maia arson crimew's articles as to why. image.persist_to(format!("/images/{uuid}.png")).await.unwrap(); match db