make sure post has valid media

This commit is contained in:
teddit 2020-12-31 18:20:24 +01:00
parent eaa441de55
commit 7aad960d22
1 changed files with 38 additions and 37 deletions

View File

@ -103,6 +103,7 @@ html
a(href="" + post.images.source + "")
img(src="" + post.images.source + "", alt="")
else
if post.media
if post.media.not_hosted_in_reddit
if post.media.source === 'YouTube'
.video