Skip to content

Commit

Permalink
Update default value for commentsEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
frankstrater authored and Chocobozzz committed Sep 18, 2019
1 parent a1b572e commit 46aaefa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/api/videos/index.ts
Expand Up @@ -185,8 +185,8 @@ async function addVideo (req: express.Request, res: express.Response) {
category: videoInfo.category,
licence: videoInfo.licence,
language: videoInfo.language,
commentsEnabled: videoInfo.commentsEnabled || false,
downloadEnabled: videoInfo.downloadEnabled !== false, // If the value is not "false", the default is "true"
commentsEnabled: videoInfo.commentsEnabled !== false, // If the value is not "false", the default is "true"
downloadEnabled: videoInfo.downloadEnabled !== false,
waitTranscoding: videoInfo.waitTranscoding || false,
state: CONFIG.TRANSCODING.ENABLED ? VideoState.TO_TRANSCODE : VideoState.PUBLISHED,
nsfw: videoInfo.nsfw || false,
Expand Down

0 comments on commit 46aaefa

Please sign in to comment.