fix: Do not use avif (#10301)

* fix: Do not use avif

* fix

* fix
This commit is contained in:
tamaina
2023-03-12 17:31:52 +09:00
committed by GitHub
parent ba98abc97b
commit dff0bee748
6 changed files with 13 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ export function getProxiedImageUrl(imageUrl: string, type?: 'preview', mustOrigi
}
return `${mustOrigin ? localProxy : instance.mediaProxy}/${
type === 'preview' ? 'preview.avif'
type === 'preview' ? 'preview.webp'
: 'image.webp'
}?${query({
url: imageUrl,
@@ -41,7 +41,7 @@ export function getStaticImageUrl(baseUrl: string): string {
return u.href;
}
return `${instance.mediaProxy}/static.avif?${query({
return `${instance.mediaProxy}/static.webp?${query({
url: u.href,
static: '1',
})}`;