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/api/client/media/mediaupdate_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/api') diff --git a/internal/api/client/media/mediaupdate_test.go b/internal/api/client/media/mediaupdate_test.go index 607f4c31c..1596c608f 100644 --- a/internal/api/client/media/mediaupdate_test.go +++ b/internal/api/client/media/mediaupdate_test.go @@ -173,7 +173,7 @@ func (suite *MediaUpdateTestSuite) TestUpdateImage() { // the reply should contain the updated fields suite.Equal("new description!", *attachmentReply.Description) - suite.EqualValues("gif", attachmentReply.Type) + suite.EqualValues("image", attachmentReply.Type) suite.EqualValues(model.MediaMeta{ Original: model.MediaDimensions{Width: 800, Height: 450, FrameRate: "", Duration: 0, Bitrate: 0, Size: "800x450", Aspect: 1.7777778}, Small: model.MediaDimensions{Width: 256, Height: 144, FrameRate: "", Duration: 0, Bitrate: 0, Size: "256x144", Aspect: 1.7777778}, -- cgit v1.2.3