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 --- testrig/testmodels.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testrig/testmodels.go') diff --git a/testrig/testmodels.go b/testrig/testmodels.go index 866c9b461..19e451f5b 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -630,7 +630,7 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment { RemoteURL: "", CreatedAt: TimeMustParse("2022-06-09T13:12:00Z"), UpdatedAt: TimeMustParse("2022-06-09T13:12:00Z"), - Type: gtsmodel.FileTypeGif, + Type: gtsmodel.FileTypeImage, FileMeta: gtsmodel.FileMeta{ Original: gtsmodel.Original{ Width: 400, @@ -679,7 +679,7 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment { RemoteURL: "", CreatedAt: TimeMustParse("2022-06-09T13:12:00Z"), UpdatedAt: TimeMustParse("2022-06-09T13:12:00Z"), - Type: gtsmodel.FileTypeGif, + Type: gtsmodel.FileTypeImage, FileMeta: gtsmodel.FileMeta{ Original: gtsmodel.Original{ Width: 800, -- cgit v1.2.3