Fix gallery video

This commit is contained in:
3nprob 2021-10-08 02:53:07 +09:00
parent 341e6e1d55
commit a88c323fb3
1 changed files with 9 additions and 3 deletions

View File

@ -35,6 +35,12 @@ mixin commentbox(comment)
mixin media(m)
div(class='Gallery-Content--mediaContainer')
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))