diff options
author | Lukas Winkler <git@lw1.at> | 2019-09-23 08:17:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-09-23 08:17:42 +0200 |
commit | 32d7f2b754b8d20bf44ae2121c79570cbff973c3 (patch) | |
tree | 81245f0129677639ff89b08321a9e7f84c359656 /server/middlewares/validators/users.ts | |
parent | 210709a9076ac152dd377234866b8e9b9108382a (diff) | |
download | PeerTube-32d7f2b754b8d20bf44ae2121c79570cbff973c3.tar.gz PeerTube-32d7f2b754b8d20bf44ae2121c79570cbff973c3.tar.zst PeerTube-32d7f2b754b8d20bf44ae2121c79570cbff973c3.zip |
fix a few typos (#2141)
* fix a few typos
* apply changes to original files instead
* additional correction
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) |