From 3a426a8385a4375e38c2649064469c435691c871 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 5 Dec 2022 17:06:14 +0000 Subject: [PATCH] =?UTF-8?q?avif=E3=81=AFMastodon=E3=81=A7=E3=81=AF?= =?UTF-8?q?=E7=B5=B6=E6=9C=9B=E7=9A=84=20see=20https://github.com/misskey-?= =?UTF-8?q?dev/misskey/issues/9283?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/DriveService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/DriveService.ts b/packages/backend/src/core/DriveService.ts index a36bcf3db4c6..3f282068c6eb 100644 --- a/packages/backend/src/core/DriveService.ts +++ b/packages/backend/src/core/DriveService.ts @@ -285,7 +285,7 @@ export class DriveService { } satisfyWebpublic = !!( - type !== 'image/svg+xml' && type !== 'image/webp' && + type !== 'image/svg+xml' && type !== 'image/webp' && type !== 'image/avif' && !(metadata.exif ?? metadata.iptc ?? metadata.xmp ?? metadata.tifftagPhotoshop) && metadata.width && metadata.width <= 2048 && metadata.height && metadata.height <= 2048