forked from MarseyWorld/MarseyWorld
master
parent
855ee70192
commit
1b88d9726b
|
@ -497,13 +497,14 @@ 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"]
|
||||
file2 = request.files["profile"]
|
||||
|
||||
if 'pcmemes.net' in request.host: highres = upload_ibb(file=file)
|
||||
else: highres = upload_imgur(file=file)
|
||||
if not highres: abort(400)
|
||||
|
||||
if 'pcmemes.net' in request.host: imageurl = upload_ibb(file=file, resize=True)
|
||||
else: imageurl = upload_imgur(file=file, resize=True)
|
||||
else: imageurl = upload_imgur(file=file2, resize=True)
|
||||
if not imageurl: abort(400)
|
||||
|
||||
v.highres = highres
|
||||
|
|
Loading…
Reference in New Issue