Merge pull request #4047 from thelounge/xpaw/avif
Detect `image/avif` as an image
This commit is contained in:
commit
ac842108f3
@ -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);
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ const inlineContentDispositionTypes = [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"image/avif",
|
||||
"text/plain",
|
||||
"video/mp4",
|
||||
"video/ogg",
|
||||
|
Loading…
Reference in New Issue
Block a user