1
0
Fork 0

Accept unlisted comments too

This commit is contained in:
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

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