Add ability to delete comments
[oweals/peertube.git] / server / helpers / custom-validators / activitypub / video-comments.ts
index 489ff27de325d22f47e064cc222622272ef8bb59..6928aced3ecc0f7d83c42657405971dc5606302c 100644 (file)
@@ -18,10 +18,15 @@ function isVideoCommentObjectValid (comment: any) {
     isActivityPubUrlValid(comment.url)
 }
 
+function isVideoCommentDeleteActivityValid (activity: any) {
+  return isBaseActivityValid(activity, 'Delete')
+}
+
 // ---------------------------------------------------------------------------
 
 export {
-  isVideoCommentCreateActivityValid
+  isVideoCommentCreateActivityValid,
+  isVideoCommentDeleteActivityValid
 }
 
 // ---------------------------------------------------------------------------