Accept unlisted comments too
This commit is contained in:
parent
317ebb939e
commit
20760d9160
|
@ -16,7 +16,10 @@ function isVideoCommentObjectValid (comment: any) {
|
||||||
isDateValid(comment.published) &&
|
isDateValid(comment.published) &&
|
||||||
isActivityPubUrlValid(comment.url) &&
|
isActivityPubUrlValid(comment.url) &&
|
||||||
isArray(comment.to) &&
|
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) {
|
function isVideoCommentDeleteActivityValid (activity: any) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user