summaryrefslogtreecommitdiff
path: root/client/html/post_content.tpl
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-06-06 20:57:22 +0200
committerrr- <rr-@sakuya.pl>2016-06-08 22:43:03 +0200
commit07329d33a44d7609417b165188ad78f0fdc6f409 (patch)
treec617643bcbcb7045b592e7b85015bcbc73657c81 /client/html/post_content.tpl
parente944e89c545ccb305f396832f10645065a409ba9 (diff)
client/posts: add post view (without comments yet)
Diffstat (limited to 'client/html/post_content.tpl')
-rw-r--r--client/html/post_content.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/html/post_content.tpl b/client/html/post_content.tpl
index 41be1bd..255f076 100644
--- a/client/html/post_content.tpl
+++ b/client/html/post_content.tpl
@@ -12,7 +12,7 @@
<% } else if (ctx.post.type === 'video') { %>
- <% if (ctx.post.flags.includes('loop')) { %>
+ <% if ((ctx.post.flags || []).includes('loop')) { %>
<video id='video' controls loop='loop'>
<% } else { %>
<video id='video' controls>