diff options
author | 2022-09-04 14:58:58 +0200 | |
---|---|---|
committer | 2022-09-04 14:58:58 +0200 | |
commit | 2db0c64738a45d633bdb0d78b8e3f6bc21079ef7 (patch) | |
tree | 0b67d3e0affca2091249a3d63ca3945d9ccc4370 /internal/media | |
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/media')
-rw-r--r-- | internal/media/processingmedia.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/processingmedia.go b/internal/media/processingmedia.go index 914d6d276..26fbc0cea 100644 --- a/internal/media/processingmedia.go +++ b/internal/media/processingmedia.go @@ -313,7 +313,7 @@ func (p *ProcessingMedia) store(ctx context.Context) error { var clean io.Reader switch extension { case mimeGif: - p.attachment.Type = gtsmodel.FileTypeGif + p.attachment.Type = gtsmodel.FileTypeImage clean = multiReader // nothing to clean from a gif case mimeJpeg, mimePng: p.attachment.Type = gtsmodel.FileTypeImage |