Skip to content

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.ts
index 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.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) &&