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/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