mirror of https://github.com/Chocobozzz/PeerTube
Bug fix logical and/or boolean selector
parent
076d3ace1e
commit
b1b7f7160b
|
@ -190,8 +190,8 @@ function buildVideo (channelId: number, body: VideoImportCreate, importData: You
|
||||||
category: body.category || importData.category,
|
category: body.category || importData.category,
|
||||||
licence: body.licence || importData.licence,
|
licence: body.licence || importData.licence,
|
||||||
language: body.language || undefined,
|
language: body.language || undefined,
|
||||||
commentsEnabled: body.commentsEnabled || true,
|
commentsEnabled: body.commentsEnabled && true,
|
||||||
downloadEnabled: body.downloadEnabled || true,
|
downloadEnabled: body.downloadEnabled && true,
|
||||||
waitTranscoding: body.waitTranscoding || false,
|
waitTranscoding: body.waitTranscoding || false,
|
||||||
state: VideoState.TO_IMPORT,
|
state: VideoState.TO_IMPORT,
|
||||||
nsfw: body.nsfw || importData.nsfw || false,
|
nsfw: body.nsfw || importData.nsfw || false,
|
||||||
|
|
Loading…
Reference in New Issue