mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Fix default true values when uploding videos
This commit is contained in:
parent
b1b7f7160b
commit
3155c8606c
2 changed files with 3 additions and 3 deletions
|
@ -186,7 +186,7 @@ async function addVideo (req: express.Request, res: express.Response) {
|
|||
licence: videoInfo.licence,
|
||||
language: videoInfo.language,
|
||||
commentsEnabled: videoInfo.commentsEnabled || false,
|
||||
downloadEnabled: videoInfo.downloadEnabled || true,
|
||||
downloadEnabled: videoInfo.downloadEnabled !== false, // If the value is not "false", the default is "true"
|
||||
waitTranscoding: videoInfo.waitTranscoding || false,
|
||||
state: CONFIG.TRANSCODING.ENABLED ? VideoState.TO_TRANSCODE : VideoState.PUBLISHED,
|
||||
nsfw: videoInfo.nsfw || false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue