Comments enabled attrivute is optional in AP
This commit is contained in:
parent
01dfb64206
commit
0bc1b31d60
|
@ -56,6 +56,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) {
|
||||||
if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED
|
if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED
|
||||||
if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false
|
if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false
|
||||||
if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true
|
if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true
|
||||||
|
if (!isBooleanValid(video.commentsEnabled)) video.commentsEnabled = false
|
||||||
|
|
||||||
return isActivityPubUrlValid(video.id) &&
|
return isActivityPubUrlValid(video.id) &&
|
||||||
isVideoNameValid(video.name) &&
|
isVideoNameValid(video.name) &&
|
||||||
|
|
Loading…
Reference in New Issue