minor chat fix

pull/195/head
Aevann 2023-08-21 21:26:22 +03:00
parent 57d7342802
commit e87de9eae1
1 changed files with 1 additions and 1 deletions

View File

@ -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