diff options
Diffstat (limited to 'src/mixins/postUtils.pug')
-rw-r--r-- | src/mixins/postUtils.pug | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mixins/postUtils.pug b/src/mixins/postUtils.pug index 4f480b6..555e388 100644 --- a/src/mixins/postUtils.pug +++ b/src/mixins/postUtils.pug | |||
@@ -7,6 +7,14 @@ | |||
7 | return (p.post_hint == "image" && p.thumbnail && p.thumbnail != "self" && p.thumbnail != "default"); | 7 | return (p.post_hint == "image" && p.thumbnail && p.thumbnail != "self" && p.thumbnail != "default"); |
8 | } | 8 | } |
9 | - | 9 | - |
10 | function postThumbnail(p) { | ||
11 | if (p.thumbnail == "image") { | ||
12 | return p.url | ||
13 | } else { | ||
14 | return p.thumbnail; | ||
15 | } | ||
16 | } | ||
17 | - | ||
10 | function isPostVideo(p) { | 18 | function isPostVideo(p) { |
11 | return (p.post_hint == "hosted:video"); | 19 | return (p.post_hint == "hosted:video"); |
12 | } | 20 | } |