fd
This commit is contained in:
parent
447f8ab295
commit
fb81584851
1 changed files with 2 additions and 1 deletions
|
@ -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
|
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
|
||||||
|
|
||||||
file = request.files["profile"]
|
file = request.files["profile"]
|
||||||
|
file2 = request.files["profile"]
|
||||||
|
|
||||||
if 'pcmemes.net' in request.host: highres = upload_ibb(file=file)
|
if 'pcmemes.net' in request.host: highres = upload_ibb(file=file)
|
||||||
else: highres = upload_imgur(file=file)
|
else: highres = upload_imgur(file=file)
|
||||||
if not highres: abort(400)
|
if not highres: abort(400)
|
||||||
|
|
||||||
if 'pcmemes.net' in request.host: imageurl = upload_ibb(file=file, resize=True)
|
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)
|
if not imageurl: abort(400)
|
||||||
|
|
||||||
v.highres = highres
|
v.highres = highres
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue