diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-29 14:56:07 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-29 14:56:07 +0100 |
commit | 0bc1b31d60ed0edf3999f51743b653068ef1816e (patch) | |
tree | 9c294e869f33e96b67a8e17c235be96ccf4999bd /server | |
parent | 01dfb6420610968c5926396032071892c4876d84 (diff) | |
download | PeerTube-0bc1b31d60ed0edf3999f51743b653068ef1816e.tar.gz PeerTube-0bc1b31d60ed0edf3999f51743b653068ef1816e.tar.zst PeerTube-0bc1b31d60ed0edf3999f51743b653068ef1816e.zip |
Comments enabled attrivute is optional in AP
Diffstat (limited to 'server')
-rw-r--r-- | server/helpers/custom-validators/activitypub/videos.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.ts index fe94bd58a..224f03f4e 100644 --- a/server/helpers/custom-validators/activitypub/videos.ts +++ b/server/helpers/custom-validators/activitypub/videos.ts | |||
@@ -56,6 +56,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) { | |||
56 | if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED | 56 | if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED |
57 | if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false | 57 | if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false |
58 | if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true | 58 | if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true |
59 | if (!isBooleanValid(video.commentsEnabled)) video.commentsEnabled = false | ||
59 | 60 | ||
60 | return isActivityPubUrlValid(video.id) && | 61 | return isActivityPubUrlValid(video.id) && |
61 | isVideoNameValid(video.name) && | 62 | isVideoNameValid(video.name) && |