Update default value for commentsEnabled
This commit is contained in:
parent
a1b572ea76
commit
46aaefa9b8
|
@ -185,8 +185,8 @@ async function addVideo (req: express.Request, res: express.Response) {
|
||||||
category: videoInfo.category,
|
category: videoInfo.category,
|
||||||
licence: videoInfo.licence,
|
licence: videoInfo.licence,
|
||||||
language: videoInfo.language,
|
language: videoInfo.language,
|
||||||
commentsEnabled: videoInfo.commentsEnabled || false,
|
commentsEnabled: videoInfo.commentsEnabled !== false, // If the value is not "false", the default is "true"
|
||||||
downloadEnabled: videoInfo.downloadEnabled !== false, // If the value is not "false", the default is "true"
|
downloadEnabled: videoInfo.downloadEnabled !== false,
|
||||||
waitTranscoding: videoInfo.waitTranscoding || false,
|
waitTranscoding: videoInfo.waitTranscoding || false,
|
||||||
state: CONFIG.TRANSCODING.ENABLED ? VideoState.TO_TRANSCODE : VideoState.PUBLISHED,
|
state: CONFIG.TRANSCODING.ENABLED ? VideoState.TO_TRANSCODE : VideoState.PUBLISHED,
|
||||||
nsfw: videoInfo.nsfw || false,
|
nsfw: videoInfo.nsfw || false,
|
||||||
|
|
Loading…
Reference in New Issue