diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-06 13:47:18 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-06 13:47:18 +0900 |
| commit | 495d513efdb8b2a996287fd54ae5014832352616 (patch) | |
| tree | 2f4499d57bc1f75f2bb74002b01a4d6bb88ae869 /packages/backend/src/server/web/ClientServerService.ts | |
| parent | enhance(client): アップデート時にも花火 (diff) | |
| download | sharkey-495d513efdb8b2a996287fd54ae5014832352616.tar.gz sharkey-495d513efdb8b2a996287fd54ae5014832352616.tar.bz2 sharkey-495d513efdb8b2a996287fd54ae5014832352616.zip | |
disable custom emoji proxy temporary
https://github.com/misskey-dev/misskey/pull/9431#issuecomment-1373006446
Diffstat (limited to 'packages/backend/src/server/web/ClientServerService.ts')
| -rw-r--r-- | packages/backend/src/server/web/ClientServerService.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts index 263b15cc5e..9cb0c4b331 100644 --- a/packages/backend/src/server/web/ClientServerService.ts +++ b/packages/backend/src/server/web/ClientServerService.ts @@ -251,6 +251,10 @@ export class ClientServerService { reply.header('Content-Security-Policy', 'default-src \'none\'; style-src \'unsafe-inline\''); + // || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ) + return await reply.redirect(301, emoji.publicUrl ?? emoji.originalUrl); + + /* https://github.com/misskey-dev/misskey/pull/9431#issuecomment-1373006446 const url = new URL('/proxy/emoji.webp', this.config.url); // || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ) url.searchParams.set('url', emoji.publicUrl || emoji.originalUrl); @@ -261,6 +265,7 @@ export class ClientServerService { 301, url.toString(), ); + */ }); fastify.get<{ Params: { path: string } }>('/fluent-emoji/:path(.*)', async (request, reply) => { |