From a5417649b1436724bc7591e057bb1a22efa916a7 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Tue, 20 Feb 2024 11:57:52 -0800 Subject: [PATCH] oops v2 --- src/tables.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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