master
Aevann1 2021-09-10 05:51:15 +02:00
parent 855ee70192
commit 1b88d9726b
1 changed files with 2 additions and 1 deletions

View File

@ -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