ActivityPub-federated video streaming platform using P2P directly in your web browser
Comments enabled attrivute is optional in AP
Chocobozzz0bc1b31d60ed
diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.tsindex fe94bd58a7..224f03f4ee 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) {if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHEDif (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = falseif (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true+ if (!isBooleanValid(video.commentsEnabled)) video.commentsEnabled = falsereturn isActivityPubUrlValid(video.id) &&isVideoNameValid(video.name) &&