summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/web/ClientServerService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-01-06 13:47:18 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-01-06 13:47:18 +0900
commit495d513efdb8b2a996287fd54ae5014832352616 (patch)
tree2f4499d57bc1f75f2bb74002b01a4d6bb88ae869 /packages/backend/src/server/web/ClientServerService.ts
parentenhance(client): アップデート時にも花火 (diff)
downloadsharkey-495d513efdb8b2a996287fd54ae5014832352616.tar.gz
sharkey-495d513efdb8b2a996287fd54ae5014832352616.tar.bz2
sharkey-495d513efdb8b2a996287fd54ae5014832352616.zip
disable custom emoji proxy temporary
https://github.com/misskey-dev/misskey/pull/9431#issuecomment-1373006446
Diffstat (limited to 'packages/backend/src/server/web/ClientServerService.ts')
-rw-r--r--packages/backend/src/server/web/ClientServerService.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts
index 263b15cc5e..9cb0c4b331 100644
--- a/packages/backend/src/server/web/ClientServerService.ts
+++ b/packages/backend/src/server/web/ClientServerService.ts
@@ -251,6 +251,10 @@ 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);
@@ -261,6 +265,7 @@ export class ClientServerService {
301,
url.toString(),
);
+ */
});
fastify.get<{ Params: { path: string } }>('/fluent-emoji/:path(.*)', async (request, reply) => {