1
0
Fork 0
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:
Chocobozzz 2019-08-28 16:03:26 +02:00
parent b1b7f7160b
commit 3155c8606c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 3 additions and 3 deletions

View file

@ -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,