Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
c336201084
3 changed files with 16 additions and 11 deletions
|
@ -251,10 +251,6 @@ 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);
|
||||
|
@ -265,7 +261,6 @@ export class ClientServerService {
|
|||
301,
|
||||
url.toString(),
|
||||
);
|
||||
*/
|
||||
});
|
||||
|
||||
fastify.get<{ Params: { path: string } }>('/fluent-emoji/:path(.*)', async (request, reply) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue