From b1b7f7160b02e64dd53faea96e748dd816895495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Str=C3=A4ter?= Date: Wed, 28 Aug 2019 12:31:55 +0200 Subject: Bug fix logical and/or boolean selector --- server/controllers/api/videos/import.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 8879f3442..ebe8718c7 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts @@ -190,8 +190,8 @@ function buildVideo (channelId: number, body: VideoImportCreate, importData: You category: body.category || importData.category, licence: body.licence || importData.licence, language: body.language || undefined, - commentsEnabled: body.commentsEnabled || true, - downloadEnabled: body.downloadEnabled || true, + commentsEnabled: body.commentsEnabled && true, + downloadEnabled: body.downloadEnabled && true, waitTranscoding: body.waitTranscoding || false, state: VideoState.TO_IMPORT, nsfw: body.nsfw || importData.nsfw || false, -- cgit v1.2.3