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) --- internal/media/processingmedia.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/media/processingmedia.go') diff --git a/internal/media/processingmedia.go b/internal/media/processingmedia.go index 504cda11e..1d286bda7 100644 --- a/internal/media/processingmedia.go +++ b/internal/media/processingmedia.go @@ -202,7 +202,8 @@ func (p *ProcessingMedia) store(ctx context.Context) error { switch p.media.Type { case gtsmodel.FileTypeImage, - gtsmodel.FileTypeVideo: + gtsmodel.FileTypeVideo, + gtsmodel.FileTypeGifv: // Attempt to clean as metadata from file as possible. if err := clearMetadata(ctx, temppath); err != nil { return gtserror.Newf("error cleaning metadata: %w", err) -- cgit v1.2.3