Accept unlisted comments too

pull/489/head
Chocobozzz 2018-04-04 09:52:45 +02:00
parent 317ebb939e
commit 20760d9160
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -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) {