Hide suspended user profile (#5452)
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MeiMei
					MeiMei