xx
This commit is contained in:
parent
288af3126d
commit
0caf20fdb5
1 changed files with 1 additions and 1 deletions
|
@ -918,7 +918,7 @@ def submit_post(v):
|
||||||
), 400
|
), 400
|
||||||
else:
|
else:
|
||||||
if file.content_type.startswith('image/'):
|
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}")
|
new_post.url = upload_imgur(f"image.{file.format}")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue