From b19cfee7aefbc42bdba8f45d5fb99feb2c2385fe Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 8 Aug 2024 10:12:16 +0200 Subject: [feature] Use gifv type for short soundless mp4 videos (#3182) --- web/template/status_attachments.tmpl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'web/template') diff --git a/web/template/status_attachments.tmpl b/web/template/status_attachments.tmpl index 8e05aafd8..ee564d934 100644 --- a/web/template/status_attachments.tmpl +++ b/web/template/status_attachments.tmpl @@ -99,7 +99,7 @@ media photoswipe-gallery {{ (len .) | oddOrEven }} {{ if eq (len .) 1 }}single{{ - {{- if eq .Type "video" }} + {{- if or (eq .Type "video") (eq .Type "gifv") }} {{- include "videoPreview" $media | indent 4 }} {{- else if eq .Type "image" }} {{- include "imagePreview" $media | indent 4 }} @@ -107,11 +107,17 @@ media photoswipe-gallery {{ (len .) | oddOrEven }} {{ if eq (len .) 1 }}single{{ {{- include "audioPreview" $media | indent 4 }} {{- end }} - {{- if eq .Type "video" }} + {{- if or (eq .Type "video") (eq .Type "gifv") }}