From e87de9eae1eb4d59899b8eb6b1c4e46abdedaf47 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 21 Aug 2023 21:26:22 +0300 Subject: [PATCH] minor chat fix --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index c12716cde..03dee4946 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -204,7 +204,7 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None, db=None): params.extend(["-resize", f"{resize}>"]) except: os.remove(filename) - if has_request: + if has_request and not filename.startswith('/chat_images/'): abort(415) return None