From a88c323fb343cf01b8450a407e3e2d55ddee06c4 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@3nprob> Date: Fri, 8 Oct 2021 02:53:07 +0900 Subject: [PATCH] Fix gallery video --- templates/gallery.pug | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/gallery.pug b/templates/gallery.pug index 063e2ae..055abec 100644 --- a/templates/gallery.pug +++ b/templates/gallery.pug @@ -35,9 +35,15 @@ mixin commentbox(comment) mixin media(m) div(class='Gallery-Content--mediaContainer') - div(class='Gallery-Content--media') - div(class='imageContainer') - img(src=util.proxyURL(m.url)) + if m.type === 'video' + .PostVideo + .PostVideo-video-wrapper + video(controls) + source(type=m.mime_type src=util.proxyURL(m.url)) + else + div(class='Gallery-Content--media') + div(class='imageContainer') + img(src=util.proxyURL(m.url)) html head