[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
This commit is contained in:
tobi
2022-09-04 14:58:58 +02:00
committed by GitHub
parent 006c8b604b
commit 2db0c64738
5 changed files with 58 additions and 7 deletions

View File

@@ -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},