This commit is contained in:
Aevann1 2021-09-13 18:38:30 +02:00
parent eab17d860b
commit e721fc077c
2 changed files with 3 additions and 3 deletions

View file

@ -527,7 +527,7 @@ def thumbs(new_post):
for chunk in image_req.iter_content(1024):
file.write(chunk)
if 'pcmemes.ga' in request.host: post.thumburl = upload_ibb(filepath="image.webp", resize=True)
if 'pcmemes.ga' in request.host: post.thumburl = upload_ibb(resize=True)
else: post.thumburl = upload_imgur(filepath="image.webp", resize=True)
g.db.add(post)