mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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