From 46aaefa9b828e8b6caf45f216aa24221725956bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Str=C3=A4ter?= Date: Wed, 18 Sep 2019 14:23:35 +0200 Subject: Update default value for commentsEnabled --- server/controllers/api/videos/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/api') 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) { 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, -- cgit v1.2.3