Update default value for commentsEnabled
authorFrank Sträter <fstrater@beeldengeluid.nl>
Wed, 18 Sep 2019 12:23:35 +0000 (14:23 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Wed, 18 Sep 2019 13:25:12 +0000 (15:25 +0200)
server/controllers/api/videos/index.ts

index 19da504c75860357c4520e543e521063774a6ad3..0d1fbc8f4bc900dcdb7741a704d972c981861f43 100644 (file)
@@ -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,