forked from MarseyWorld/MarseyWorld
master
parent
b65ee97d26
commit
6618aef22b
|
@ -918,7 +918,7 @@ def submit_post(v):
|
|||
), 400
|
||||
else:
|
||||
if file.content_type.startswith('image/'):
|
||||
file.save(f"image.{file.format}", optimize=True, quality=30)
|
||||
file.save(f"image.{file.filename.split('.')[-1]}")
|
||||
new_post.url = upload_imgur(f"image.{file.format}")
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue