From d4b696d03af3eb86c7ac11c222d40b1006452ed5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 13 May 2018 17:00:34 +0900 Subject: [PATCH] Fix bug --- src/server/web/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/web/index.ts b/src/server/web/index.ts index 7d4f76665..6ceef17c1 100644 --- a/src/server/web/index.ts +++ b/src/server/web/index.ts @@ -87,7 +87,7 @@ router.get('/url', require('./url-preview')); //#region for crawlers // User -router.get('/@:user', async ctx => { +router.get('/@:user', async (ctx, next) => { const { username, host } = parseAcct(ctx.params.user); const user = await User.findOne({ usernameLower: username.toLowerCase(), @@ -97,7 +97,8 @@ router.get('/@:user', async ctx => { if (user != null) { await ctx.render('user', { user }); } else { - ctx.status = 404; + // リモートユーザーなので + await next(); } });