remotes/1693045480750635534/spooky-22
Aevann1 2021-07-29 09:54:36 +02:00
parent ba788bef50
commit e8caeb1b2c
1 changed files with 1 additions and 2 deletions

View File

@ -742,8 +742,7 @@ def edit_comment(cid, v):
if request.files.get("file"):
file=request.files["file"]
if not file.content_type.startswith('image/'):
return jsonify({"error": "That wasn't an image!"}), 400
if not file.content_type.startswith('image/'): return jsonify({"error": "That wasn't an image!"}), 400
name = f'comment/{c.base36id}/{secrets.token_urlsafe(8)}'
url = upload_file(name, file)