Skip to content
Snippets Groups Projects
Unverified Commit 20760d91 authored by Chocobozzz's avatar Chocobozzz
Browse files

Accept unlisted comments too

parent 317ebb93
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,10 @@ function isVideoCommentObjectValid (comment: any) { ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment