diff options
author | 2024-08-08 10:12:16 +0200 | |
---|---|---|
committer | 2024-08-08 08:12:16 +0000 | |
commit | b19cfee7aefbc42bdba8f45d5fb99feb2c2385fe (patch) | |
tree | a21493efc386bbfa98560df9c308ea1aea555dd6 /internal/gtsmodel/mediaattachment.go | |
parent | updates our ffmpreg version, heh (#3181) (diff) | |
download | gotosocial-b19cfee7aefbc42bdba8f45d5fb99feb2c2385fe.tar.xz |
[feature] Use gifv type for short soundless mp4 videos (#3182)
Diffstat (limited to 'internal/gtsmodel/mediaattachment.go')
-rw-r--r-- | internal/gtsmodel/mediaattachment.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/gtsmodel/mediaattachment.go b/internal/gtsmodel/mediaattachment.go index eb792ae3b..f4bfb5929 100644 --- a/internal/gtsmodel/mediaattachment.go +++ b/internal/gtsmodel/mediaattachment.go @@ -91,6 +91,7 @@ const ( FileTypeImage FileType = 1 // FileTypeImage is for jpegs, pngs, and standard gifs FileTypeAudio FileType = 2 // FileTypeAudio is for audio-only files (no video) FileTypeVideo FileType = 3 // FileTypeVideo is for files with audio + visual + FileTypeGifv FileType = 4 // FileTypeGifv is for short video-only files (20s or less, mp4, no audio). ) // String returns a stringified, frontend API compatible form of FileType. @@ -104,6 +105,8 @@ func (t FileType) String() string { return "audio" case FileTypeVideo: return "video" + case FileTypeGifv: + return "gifv" default: panic("invalid filetype") } |