From 43b552c5de14dd18402ec42a882a000914adb40b Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Tue, 7 Sep 2021 22:25:33 +0200 Subject: [PATCH] idirew --- files/routes/posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 596dc33ee..1de0dc14e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -897,6 +897,8 @@ def submit_post(v): else: try: post_url = upload_video(file) + if not post_url.endswith('.mp4'): + post_url += 'mp4' new_post.url = post_url new_post.processing = True gevent.spawn(check_processing_thread, v.id, new_post, post_url, g.db)