diff --git a/files/templates/submission.html b/files/templates/submission.html index f5b5812158..6de642647f 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -80,7 +80,7 @@ -{% if p.url.lower().endswith('.mp4') %} +{% if p.url and p.url.lower().endswith('.mp4') %} {% endif %} @@ -109,7 +109,7 @@ -{% if p.url.lower().endswith('.mp4') %} +{% if p.url and p.url.lower().endswith('.mp4') %} {% endif %} @@ -316,7 +316,7 @@
- {% elif not p.embed_url and not p.is_image and not p.url.lower().endswith('.mp4') %} + {% elif not p.embed_url and not p.is_image and not (p.url and p.url.lower().endswith('.mp4')) %}