Hide suspended user profile (#5452)
This commit is contained in:
parent
a3c7901f87
commit
541f5f1314
6 changed files with 40 additions and 11 deletions
|
|
@ -165,7 +165,8 @@ router.get('/users/:user', async (ctx, next) => {
|
|||
|
||||
const user = await Users.findOne({
|
||||
id: userId,
|
||||
host: null
|
||||
host: null,
|
||||
isSuspended: false
|
||||
});
|
||||
|
||||
await userInfo(ctx, user);
|
||||
|
|
@ -176,7 +177,8 @@ router.get('/@:user', async (ctx, next) => {
|
|||
|
||||
const user = await Users.findOne({
|
||||
usernameLower: ctx.params.user.toLowerCase(),
|
||||
host: null
|
||||
host: null,
|
||||
isSuspended: false
|
||||
});
|
||||
|
||||
await userInfo(ctx, user);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue