summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2023-03-12 17:31:52 +0900
committerGitHub <noreply@github.com>2023-03-12 17:31:52 +0900
commitdff0bee7484fd65927cb9b85780ada2922986768 (patch)
tree824d1e9a4d27b6f31d387dc21d181222b4cfed8b /packages/frontend/src/scripts
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadsharkey-dff0bee7484fd65927cb9b85780ada2922986768.tar.gz
sharkey-dff0bee7484fd65927cb9b85780ada2922986768.tar.bz2
sharkey-dff0bee7484fd65927cb9b85780ada2922986768.zip
fix: Do not use avif (#10301)
* fix: Do not use avif * fix * fix
Diffstat (limited to 'packages/frontend/src/scripts')
-rw-r--r--packages/frontend/src/scripts/media-proxy.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/scripts/media-proxy.ts b/packages/frontend/src/scripts/media-proxy.ts
index d0c95e0b75..91ac14c06d 100644
--- a/packages/frontend/src/scripts/media-proxy.ts
+++ b/packages/frontend/src/scripts/media-proxy.ts
@@ -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',
})}`;