Merge pull request #4047 from thelounge/xpaw/avif

Detect `image/avif` as an image
This commit is contained in:
Pavel Djundik 2020-08-24 11:54:14 +03:00 committed by GitHub
commit ac842108f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -223,6 +223,7 @@ function parse(msg, chan, preview, res, client) {
case "image/jpg":
case "image/jpeg":
case "image/webp":
case "image/avif":
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {
return removePreview(msg, preview);
}

View file

@ -24,6 +24,7 @@ const inlineContentDispositionTypes = [
"image/jpeg",
"image/png",
"image/webp",
"image/avif",
"text/plain",
"video/mp4",
"video/ogg",