mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Add video abuse to activity pub
This commit is contained in:
parent
59c857da59
commit
8e13fa7d09
13 changed files with 114 additions and 68 deletions
|
@ -112,10 +112,6 @@ function isVideoAbuseReasonValid (value: string) {
|
|||
return exists(value) && validator.isLength(value, VIDEO_ABUSES_CONSTRAINTS_FIELDS.REASON)
|
||||
}
|
||||
|
||||
function isVideoAbuseReporterUsernameValid (value: string) {
|
||||
return isUserUsernameValid(value)
|
||||
}
|
||||
|
||||
function isVideoViewsValid (value: string) {
|
||||
return exists(value) && validator.isInt(value + '', VIDEOS_CONSTRAINTS_FIELDS.VIEWS)
|
||||
}
|
||||
|
@ -209,7 +205,6 @@ export {
|
|||
isVideoThumbnailDataValid,
|
||||
isVideoFileExtnameValid,
|
||||
isVideoAbuseReasonValid,
|
||||
isVideoAbuseReporterUsernameValid,
|
||||
isVideoFile,
|
||||
isVideoViewsValid,
|
||||
isVideoLikesValid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue