mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability to set a name to a channel
This commit is contained in:
parent
965c4b22d0
commit
8a19bee1a1
45 changed files with 321 additions and 184 deletions
|
@ -42,7 +42,7 @@ function isAccountNameWithHostExist (nameWithDomain: string, res: Response, send
|
|||
|
||||
let promise: Bluebird<AccountModel>
|
||||
if (!host || host === CONFIG.WEBSERVER.HOST) promise = AccountModel.loadLocalByName(accountName)
|
||||
else promise = AccountModel.loadLocalByNameAndHost(accountName, host)
|
||||
else promise = AccountModel.loadByNameAndHost(accountName, host)
|
||||
|
||||
return isAccountExist(promise, res, sendNotFound)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue