aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r--server/middlewares/validators/users.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts
index 544db76d7..871233afe 100644
--- a/server/middlewares/validators/users.ts
+++ b/server/middlewares/validators/users.ts
@@ -91,7 +91,7 @@ const usersRegisterValidator = [
91 91
92 if (body.channel.name === body.username) { 92 if (body.channel.name === body.username) {
93 return res.status(400) 93 return res.status(400)
94 .json({ error: 'Channel name cannot be the same than user username.' }) 94 .json({ error: 'Channel name cannot be the same as user username.' })
95 } 95 }
96 96
97 const existing = await ActorModel.loadLocalByName(body.channel.name) 97 const existing = await ActorModel.loadLocalByName(body.channel.name)