types: override webm as a video

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-08-08 16:10:27 -04:00
parent 553f990c5d
commit 4a23b6bac1
Signed by: vbatts
GPG Key ID: 10937E57733F1362
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ func (f *File) IsImage() bool {
}
func (f *File) IsVideo() bool {
if strings.HasSuffix(f.Filename, ".webm") {
return true
}
return strings.HasPrefix(f.ContentType(), "video")
}