Detect image/avif
as an image
This commit is contained in:
parent
7bf4f68ff8
commit
c89dcca449
@ -209,6 +209,7 @@ function parse(msg, chan, preview, res, client) {
|
|||||||
case "image/jpg":
|
case "image/jpg":
|
||||||
case "image/jpeg":
|
case "image/jpeg":
|
||||||
case "image/webp":
|
case "image/webp":
|
||||||
|
case "image/avif":
|
||||||
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {
|
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {
|
||||||
return removePreview(msg, preview);
|
return removePreview(msg, preview);
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ const inlineContentDispositionTypes = [
|
|||||||
"image/jpeg",
|
"image/jpeg",
|
||||||
"image/png",
|
"image/png",
|
||||||
"image/webp",
|
"image/webp",
|
||||||
|
"image/avif",
|
||||||
"text/plain",
|
"text/plain",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
|
Loading…
Reference in New Issue
Block a user