mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
Fix bug
This commit is contained in:
parent
219fdecc50
commit
d4b696d03a
@ -87,7 +87,7 @@ router.get('/url', require('./url-preview'));
|
|||||||
|
|
||||||
//#region for crawlers
|
//#region for crawlers
|
||||||
// User
|
// User
|
||||||
router.get('/@:user', async ctx => {
|
router.get('/@:user', async (ctx, next) => {
|
||||||
const { username, host } = parseAcct(ctx.params.user);
|
const { username, host } = parseAcct(ctx.params.user);
|
||||||
const user = await User.findOne({
|
const user = await User.findOne({
|
||||||
usernameLower: username.toLowerCase(),
|
usernameLower: username.toLowerCase(),
|
||||||
@ -97,7 +97,8 @@ router.get('/@:user', async ctx => {
|
|||||||
if (user != null) {
|
if (user != null) {
|
||||||
await ctx.render('user', { user });
|
await ctx.render('user', { user });
|
||||||
} else {
|
} else {
|
||||||
ctx.status = 404;
|
// リモートユーザーなので
|
||||||
|
await next();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user