Skip to content
Snippets Groups Projects
Unverified Commit 88c64ece authored by syuilo's avatar syuilo Committed by GitHub
Browse files

Update ClientServerService.ts

parent a11672d0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment