forked from MarseyWorld/MarseyWorld
jfc
parent
a708d9fb84
commit
b51ae21732
|
@ -527,7 +527,7 @@ def settings_images_banner(v):
|
|||
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
|
||||
|
||||
file = request.files["banner"]
|
||||
file.save(f"image.{file.filename.split('.')[-1]}", optimize=True, quality=30)
|
||||
file.save(f"image.{file.filename.split('.')[-1]}")
|
||||
|
||||
if 'pcmemes.net' in request.host: imageurl = upload_ibb(f"image.{file.filename.split('.')[-1]}")
|
||||
else: imageurl = upload_imgur(f"image.{file.filename.split('.')[-1]}")
|
||||
|
|
Loading…
Reference in New Issue