master
fireworks88 2021-09-09 21:44:06 +02:00
parent 7dfd26758a
commit 72e74af44a
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ def settings_images_profile(v):
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
file = request.files["profile"]
file.save(f"image.{file.format}")
file.save(f"image.{file.filename.split('.')[-1]}")
if 'pcmemes.net' in request.host: highres = upload_ibb(f"image.{file.filename.split('.')[-1]}")
else: highres = upload_imgur(f"image.{file.filename.split('.')[-1]}")