diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-28 16:03:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-28 16:03:26 +0200 |
commit | 3155c8606cff211f495bf71c75c56cae85a5430f (patch) | |
tree | b44e429045bb755a1cfaa6de6d510cbf628e2d21 /server/controllers/api/videos/index.ts | |
parent | b1b7f7160b02e64dd53faea96e748dd816895495 (diff) | |
download | PeerTube-3155c8606cff211f495bf71c75c56cae85a5430f.tar.gz PeerTube-3155c8606cff211f495bf71c75c56cae85a5430f.tar.zst PeerTube-3155c8606cff211f495bf71c75c56cae85a5430f.zip |
Fix default true values when uploding videos
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index b4f656575..19da504c7 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -186,7 +186,7 @@ async function addVideo (req: express.Request, res: express.Response) { | |||
186 | licence: videoInfo.licence, | 186 | licence: videoInfo.licence, |
187 | language: videoInfo.language, | 187 | language: videoInfo.language, |
188 | commentsEnabled: videoInfo.commentsEnabled || false, | 188 | commentsEnabled: videoInfo.commentsEnabled || false, |
189 | downloadEnabled: videoInfo.downloadEnabled || true, | 189 | downloadEnabled: videoInfo.downloadEnabled !== false, // If the value is not "false", the default is "true" |
190 | waitTranscoding: videoInfo.waitTranscoding || false, | 190 | waitTranscoding: videoInfo.waitTranscoding || false, |
191 | state: CONFIG.TRANSCODING.ENABLED ? VideoState.TO_TRANSCODE : VideoState.PUBLISHED, | 191 | state: CONFIG.TRANSCODING.ENABLED ? VideoState.TO_TRANSCODE : VideoState.PUBLISHED, |
192 | nsfw: videoInfo.nsfw || false, | 192 | nsfw: videoInfo.nsfw || false, |