mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 05:13:09 +02:00
Update ClientServerService.ts
This commit is contained in:
parent
a11672d0a5
commit
88c64ece78
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue