Improve error message on actor name conflict
This commit is contained in:
parent
2db85d6b6e
commit
c907c2fa3f
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ async function checkUserNameOrEmailDoesNotAlreadyExist (username: string, email:
|
||||||
const actor = await ActorModel.loadLocalByName(username)
|
const actor = await ActorModel.loadLocalByName(username)
|
||||||
if (actor) {
|
if (actor) {
|
||||||
res.status(409)
|
res.status(409)
|
||||||
.send({ error: 'Another actor (account/channel) with this name already exists.' })
|
.send({ error: 'Another actor (account/channel) with this name on this instance already exists or has already existed.' })
|
||||||
.end()
|
.end()
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue