Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Accept unlisted comments too

Chocobozzz20760d9160e0
diff --git a/server/helpers/custom-validators/activitypub/video-comments.ts b/server/helpers/custom-validators/activitypub/video-comments.ts
index 079fee4344..7e8cfece27 100644
--- a/server/helpers/custom-validators/activitypub/video-comments.ts
+++ b/server/helpers/custom-validators/activitypub/video-comments.ts
@@ -16,7 +16,10 @@ function isVideoCommentObjectValid (comment: any) {
isDateValid(comment.published) &&
isActivityPubUrlValid(comment.url) &&
isArray(comment.to) &&
- comment.to.indexOf(ACTIVITY_PUB.PUBLIC) !== -1 // Only accept public comments
+ (
+ comment.to.indexOf(ACTIVITY_PUB.PUBLIC) !== -1 ||
+ comment.cc.indexOf(ACTIVITY_PUB.PUBLIC) !== -1
+ ) // Only accept public comments
}
function isVideoCommentDeleteActivityValid (activity: any) {