diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-04 11:19:16 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-04 11:19:16 +0100 |
commit | 4cb6d4578893db310297d7e118ce2fb7ecb952a3 (patch) | |
tree | a89a2e2062ba7bb91e922f07a7950ee51e090ccf /server/helpers/custom-validators/activitypub/video-comments.ts | |
parent | cf117aaafc1e9ae1ab4c388fc5d2e5ba9349efee (diff) | |
download | PeerTube-4cb6d4578893db310297d7e118ce2fb7ecb952a3.tar.gz PeerTube-4cb6d4578893db310297d7e118ce2fb7ecb952a3.tar.zst PeerTube-4cb6d4578893db310297d7e118ce2fb7ecb952a3.zip |
Add ability to delete comments
Diffstat (limited to 'server/helpers/custom-validators/activitypub/video-comments.ts')
-rw-r--r-- | server/helpers/custom-validators/activitypub/video-comments.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/video-comments.ts b/server/helpers/custom-validators/activitypub/video-comments.ts index 489ff27de..6928aced3 100644 --- a/server/helpers/custom-validators/activitypub/video-comments.ts +++ b/server/helpers/custom-validators/activitypub/video-comments.ts | |||
@@ -18,10 +18,15 @@ function isVideoCommentObjectValid (comment: any) { | |||
18 | isActivityPubUrlValid(comment.url) | 18 | isActivityPubUrlValid(comment.url) |
19 | } | 19 | } |
20 | 20 | ||
21 | function isVideoCommentDeleteActivityValid (activity: any) { | ||
22 | return isBaseActivityValid(activity, 'Delete') | ||
23 | } | ||
24 | |||
21 | // --------------------------------------------------------------------------- | 25 | // --------------------------------------------------------------------------- |
22 | 26 | ||
23 | export { | 27 | export { |
24 | isVideoCommentCreateActivityValid | 28 | isVideoCommentCreateActivityValid, |
29 | isVideoCommentDeleteActivityValid | ||
25 | } | 30 | } |
26 | 31 | ||
27 | // --------------------------------------------------------------------------- | 32 | // --------------------------------------------------------------------------- |