diff options
Diffstat (limited to 'src/views/comments.pug')
-rw-r--r-- | src/views/comments.pug | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/views/comments.pug b/src/views/comments.pug index 0898a9c..e335cae 100644 --- a/src/views/comments.pug +++ b/src/views/comments.pug | |||
@@ -14,7 +14,13 @@ html | |||
14 | h4 r/#{post.subreddit} | 14 | h4 r/#{post.subreddit} |
15 | h2 #{post.title} | 15 | h2 #{post.title} |
16 | 16 | ||
17 | if post.post_hint == 'image' | 17 | if post.is_gallery && post.is_gallery == true |
18 | if post.gallery_data | ||
19 | if post.gallery_data.items | ||
20 | each item in post.gallery_data.items | ||
21 | - var url = `https://i.redd.it/${item.media_id}.jpg` | ||
22 | img(src=url).post-media | ||
23 | if (post.post_hint == "image" || post.post_hint == "link") && post.thumbnail && post.thumbnail != "self" && post.thumbnail != "default" | ||
18 | img(src=post.url).post-media | 24 | img(src=post.url).post-media |
19 | else if post.post_hint == 'hosted:video' | 25 | else if post.post_hint == 'hosted:video' |
20 | - var url = post.secure_media.reddit_video.dash_url | 26 | - var url = post.secure_media.reddit_video.dash_url |