mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Make channelName optionnal only for the API
This commit is contained in:
@@ -197,7 +197,7 @@ async function createUser (req: express.Request, res: express.Response) {
|
||||
|
||||
const { user, account, videoChannel } = await createUserAccountAndChannelAndPlaylist({
|
||||
userToCreate,
|
||||
channelNames: { name: body.channelName, displayName: body.channelName }
|
||||
channelNames: body.channelName && { name: body.channelName, displayName: body.channelName }
|
||||
})
|
||||
|
||||
auditLogger.create(getAuditIdFromRes(res), new UserAuditView(user.toFormattedJSON()))
|
||||
|
||||
Reference in New Issue
Block a user