From b881d98d1af915006cf7cbe3b6199c9de6734ef8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 24 Sep 2021 01:25:21 +0200 Subject: [PATCH] fds --- files/routes/posts.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 01b52b720d..09cee293dd 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -601,12 +601,7 @@ def thumbnail_thread(pid): return False, f'Unknown content type {x.headers.get("Content-Type")} for submitted content' - print(f"Have image, uploading") - - name = f"posts/{post.base36id}/thumb.png" - tempname = name.replace("/", "_") - - with open(tempname, "wb") as file: + with open("image.webp", "wb") as file: for chunk in image_req.iter_content(1024): file.write(chunk)