From 2db0c64738a45d633bdb0d78b8e3f6bc21079ef7 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 4 Sep 2022 14:58:58 +0200 Subject: [bugfix] Use 'Image' instead of unrecognized 'Gif' type for media attachments (#801) * Store gifs as Image type * remove Gif attachment type, add Gifv type * update test --- internal/media/processingmedia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/media/processingmedia.go') diff --git a/internal/media/processingmedia.go b/internal/media/processingmedia.go index 914d6d276..26fbc0cea 100644 --- a/internal/media/processingmedia.go +++ b/internal/media/processingmedia.go @@ -313,7 +313,7 @@ func (p *ProcessingMedia) store(ctx context.Context) error { var clean io.Reader switch extension { case mimeGif: - p.attachment.Type = gtsmodel.FileTypeGif + p.attachment.Type = gtsmodel.FileTypeImage clean = multiReader // nothing to clean from a gif case mimeJpeg, mimePng: p.attachment.Type = gtsmodel.FileTypeImage -- cgit v1.2.3