Comments enabled attrivute is optional in AP

pull/2438/head
Chocobozzz 2020-01-29 14:56:07 +01:00
parent 01dfb64206
commit 0bc1b31d60
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) {
if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED
if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false
if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true
if (!isBooleanValid(video.commentsEnabled)) video.commentsEnabled = false
return isActivityPubUrlValid(video.id) &&
isVideoNameValid(video.name) &&