Hide suspended user profile (#5452)

This commit is contained in:
MeiMei
2020-01-02 02:47:20 +09:00
committed by syuilo
parent a3c7901f87
commit 541f5f1314
6 changed files with 40 additions and 11 deletions

View File

@@ -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);