forked from MarseyWorld/MarseyWorld
minor chat fix
parent
57d7342802
commit
e87de9eae1
|
@ -204,7 +204,7 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None, db=None):
|
||||||
params.extend(["-resize", f"{resize}>"])
|
params.extend(["-resize", f"{resize}>"])
|
||||||
except:
|
except:
|
||||||
os.remove(filename)
|
os.remove(filename)
|
||||||
if has_request:
|
if has_request and not filename.startswith('/chat_images/'):
|
||||||
abort(415)
|
abort(415)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue