summaryrefslogtreecommitdiff
path: root/testrig/testmodels.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-09-04 14:58:58 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-04 14:58:58 +0200
commit2db0c64738a45d633bdb0d78b8e3f6bc21079ef7 (patch)
tree0b67d3e0affca2091249a3d63ca3945d9ccc4370 /testrig/testmodels.go
parent[feature] Set default header and avatar for API accounts to GtS ones (#799) (diff)
downloadgotosocial-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 'testrig/testmodels.go')
-rw-r--r--testrig/testmodels.go4
1 files changed, 2 insertions, 2 deletions
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,