Accept unlisted comments too
This commit is contained in:
parent
317ebb939e
commit
20760d9160
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue