diff options
Diffstat (limited to 'src/mixins/post.pug')
-rw-r--r-- | src/mixins/post.pug | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixins/post.pug b/src/mixins/post.pug index fc765ab..6dbebec 100644 --- a/src/mixins/post.pug +++ b/src/mixins/post.pug | |||
@@ -20,10 +20,10 @@ mixin post(p) | |||
20 | if p.gallery_data.items | 20 | if p.gallery_data.items |
21 | - var item = p.gallery_data.items[0] | 21 | - var item = p.gallery_data.items[0] |
22 | - var url = `https://i.redd.it/${item.media_id}.jpg` | 22 | - var url = `https://i.redd.it/${item.media_id}.jpg` |
23 | img(src=url width='100px' height='100px' onclick=`toggleDetails('${p.id}')`) | 23 | img(src=url onclick=`toggleDetails('${p.id}')`) |
24 | else if p.post_hint == "image" || p.post_hint == "link" | 24 | else if p.post_hint == "image" || p.post_hint == "link" |
25 | if p.thumbnail && p.thumbnail != "self" || p.thumbnail != "default" | 25 | if p.thumbnail && p.thumbnail != "self" || p.thumbnail != "default" |
26 | img(src=p.thumbnail width='100px' height='100px' onclick=`toggleDetails('${p.id}')`) | 26 | img(src=p.thumbnail onclick=`toggleDetails('${p.id}')`) |
27 | else if p.post_hint == "hosted:video" | 27 | else if p.post_hint == "hosted:video" |
28 | - var url = p.secure_media.reddit_video.dash_url | 28 | - var url = p.secure_media.reddit_video.dash_url |
29 | video(src=url data-dashjs-player width='100px' height='100px' onclick=`toggleDetails('${p.id}')`) | 29 | video(src=url data-dashjs-player width='100px' height='100px' onclick=`toggleDetails('${p.id}')`) |