diff options
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 19da504c7..0d1fbc8f4 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -185,8 +185,8 @@ async function addVideo (req: express.Request, res: express.Response) { | |||
185 | category: videoInfo.category, | 185 | category: videoInfo.category, |
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, // If the value is not "false", the default is "true" |
189 | downloadEnabled: videoInfo.downloadEnabled !== false, // If the value is not "false", the default is "true" | 189 | downloadEnabled: videoInfo.downloadEnabled !== false, |
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, |