mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix bug
This commit is contained in:
parent
1d639faf15
commit
a5b00b030a
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue