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