From 88c64ece78db199d2f4685180511f2d6b84945d6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 6 Jan 2023 14:07:34 +0900 Subject: [PATCH] Update ClientServerService.ts --- packages/backend/src/server/web/ClientServerService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts index 9cb0c4b33..461d1d489 100644 --- a/packages/backend/src/server/web/ClientServerService.ts +++ b/packages/backend/src/server/web/ClientServerService.ts @@ -252,7 +252,7 @@ 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); + 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);