diff options
author | 2022-09-04 14:58:58 +0200 | |
---|---|---|
committer | 2022-09-04 14:58:58 +0200 | |
commit | 2db0c64738a45d633bdb0d78b8e3f6bc21079ef7 (patch) | |
tree | 0b67d3e0affca2091249a3d63ca3945d9ccc4370 /internal/api/client/media/mediaupdate_test.go | |
parent | [feature] Set default header and avatar for API accounts to GtS ones (#799) (diff) | |
download | gotosocial-2db0c64738a45d633bdb0d78b8e3f6bc21079ef7.tar.xz |
[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
Diffstat (limited to 'internal/api/client/media/mediaupdate_test.go')
-rw-r--r-- | internal/api/client/media/mediaupdate_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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}, |