aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
authorFrank Sträter <fstrater@beeldengeluid.nl>2019-09-18 14:23:35 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-09-18 15:25:12 +0200
commit46aaefa9b828e8b6caf45f216aa24221725956bf (patch)
treebdbcbb7b988d86ea348ad7ccc8106a8d7968a975 /server/controllers/api/videos
parenta1b572ea76687c0e347b7facaf2c77cda2533bdb (diff)
downloadPeerTube-46aaefa9b828e8b6caf45f216aa24221725956bf.tar.gz
PeerTube-46aaefa9b828e8b6caf45f216aa24221725956bf.tar.zst
PeerTube-46aaefa9b828e8b6caf45f216aa24221725956bf.zip
Update default value for commentsEnabled
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r--server/controllers/api/videos/index.ts4
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,