From ee54cacaec0d6de44a216953acda131353307c95 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Mon, 6 Sep 2021 22:18:59 +0200 Subject: [PATCH] pokkoppok --- files/routes/posts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 689c64766..51eb86004 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -871,7 +871,10 @@ def submit_post(v): new_post.url = upload_ibb(file) else: try: - new_post.url = upload_video(file) + 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) except UploadException as e: if request.headers.get("Authorization"): return {