im going to kill myself

master
fireworks88 2021-09-06 22:22:33 +02:00
parent ee54cacaec
commit 71ccb856ce
1 changed files with 6 additions and 6 deletions

View File

@ -871,7 +871,7 @@ def submit_post(v):
new_post.url = upload_ibb(file)
else:
try:
post_url = upload_imgur(file)
post_url = upload_video(file)
new_post.url = post_url
thing = gevent.spawn(check_processing_thread, new_post, post_url, g.db)
print(thing.started)
@ -890,13 +890,13 @@ def submit_post(v):
), 400
else:
if file.content_type.startswith('image/'):
post_url = upload_imgur(file)
new_post.url = post_url
thing = gevent.spawn(check_processing_thread, new_post, post_url, g.db)
print(thing.started)
new_post.url = upload_imgur(file)
else:
try:
new_post.url = upload_video(file)
post_url = upload_video(file)
new_post.url = post_url
thing = gevent.spawn(check_processing_thread, new_post, post_url, g.db)
print(thing.started)
except UploadException as e:
if request.headers.get("Authorization"):
return {