Merge remote-tracking branch 'misskey-dev/develop' into io

This commit is contained in:
まっちゃとーにゅ 2024-05-09 00:21:37 +09:00
commit f2743a09e2
No known key found for this signature in database
GPG key ID: 143DE582A97FE052
23 changed files with 1001 additions and 1106 deletions

View file

@ -199,6 +199,11 @@ export class ClientServerService {
// Authenticate
fastify.addHook('onRequest', async (request, reply) => {
if (request.routeOptions.url == null) {
reply.code(404).send('Not found');
return;
}
// %71ueueとかでリクエストされたら困るため
const url = decodeURI(request.routeOptions.url ?? '');
if (url === bullBoardPath || url.startsWith(bullBoardPath + '/')) {