diff options
Diffstat (limited to 'server/middlewares/validators/users.ts')
-rw-r--r-- | server/middlewares/validators/users.ts | 2 |
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) |