diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-15 15:12:23 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 8e13fa7d09e9925b4559cbba6c5d72c5ff1bd391 (patch) | |
tree | a59070f4dc6b52a5b422bd31a8eb8ea3bff831a0 /server/helpers/custom-validators | |
parent | 59c857da5961e2bcddcfd07832783c1e4afcd01a (diff) | |
download | PeerTube-8e13fa7d09e9925b4559cbba6c5d72c5ff1bd391.tar.gz PeerTube-8e13fa7d09e9925b4559cbba6c5d72c5ff1bd391.tar.zst PeerTube-8e13fa7d09e9925b4559cbba6c5d72c5ff1bd391.zip |
Add video abuse to activity pub
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index d68de6609..1505632da 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -112,10 +112,6 @@ function isVideoAbuseReasonValid (value: string) { | |||
112 | return exists(value) && validator.isLength(value, VIDEO_ABUSES_CONSTRAINTS_FIELDS.REASON) | 112 | return exists(value) && validator.isLength(value, VIDEO_ABUSES_CONSTRAINTS_FIELDS.REASON) |
113 | } | 113 | } |
114 | 114 | ||
115 | function isVideoAbuseReporterUsernameValid (value: string) { | ||
116 | return isUserUsernameValid(value) | ||
117 | } | ||
118 | |||
119 | function isVideoViewsValid (value: string) { | 115 | function isVideoViewsValid (value: string) { |
120 | return exists(value) && validator.isInt(value + '', VIDEOS_CONSTRAINTS_FIELDS.VIEWS) | 116 | return exists(value) && validator.isInt(value + '', VIDEOS_CONSTRAINTS_FIELDS.VIEWS) |
121 | } | 117 | } |
@@ -209,7 +205,6 @@ export { | |||
209 | isVideoThumbnailDataValid, | 205 | isVideoThumbnailDataValid, |
210 | isVideoFileExtnameValid, | 206 | isVideoFileExtnameValid, |
211 | isVideoAbuseReasonValid, | 207 | isVideoAbuseReasonValid, |
212 | isVideoAbuseReporterUsernameValid, | ||
213 | isVideoFile, | 208 | isVideoFile, |
214 | isVideoViewsValid, | 209 | isVideoViewsValid, |
215 | isVideoLikesValid, | 210 | isVideoLikesValid, |