Skip to content

Commit

Permalink
Revert "disable custom emoji proxy temporary"
Browse files Browse the repository at this point in the history
This reverts commit 495d513.
  • Loading branch information
tamaina committed Jan 6, 2023
1 parent 3a8ab87 commit c8b48c6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/backend/src/server/web/ClientServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -265,7 +261,6 @@ export class ClientServerService {
301,
url.toString(),
);
*/
});

fastify.get<{ Params: { path: string } }>('/fluent-emoji/:path(.*)', async (request, reply) => {
Expand Down

0 comments on commit c8b48c6

Please sign in to comment.