aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-26 17:25:35 +0100
committerChocobozzz <me@florianbigard.com>2018-01-26 17:25:35 +0100
commit0a67e28beeaf603110d52df3eda400e60531b3a4 (patch)
treef2771c1d0de356cf163fb79b498b41b2b2cdad2c /server/helpers/custom-validators
parent4ba3b8ea1be85d95a508ac479f26b96ceea15971 (diff)
downloadPeerTube-0a67e28beeaf603110d52df3eda400e60531b3a4.tar.gz
PeerTube-0a67e28beeaf603110d52df3eda400e60531b3a4.tar.zst
PeerTube-0a67e28beeaf603110d52df3eda400e60531b3a4.zip
Use sensitive instead of nsfw in activitypub
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/activitypub/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.ts
index 5d2a1f171..10588423a 100644
--- a/server/helpers/custom-validators/activitypub/videos.ts
+++ b/server/helpers/custom-validators/activitypub/videos.ts
@@ -52,7 +52,7 @@ function isVideoTorrentObjectValid (video: any) {
52 (!video.licence || isRemoteIdentifierValid(video.licence)) && 52 (!video.licence || isRemoteIdentifierValid(video.licence)) &&
53 (!video.language || isRemoteIdentifierValid(video.language)) && 53 (!video.language || isRemoteIdentifierValid(video.language)) &&
54 isVideoViewsValid(video.views) && 54 isVideoViewsValid(video.views) &&
55 isBooleanValid(video.nsfw) && 55 isBooleanValid(video.sensitive) &&
56 isBooleanValid(video.commentsEnabled) && 56 isBooleanValid(video.commentsEnabled) &&
57 isDateValid(video.published) && 57 isDateValid(video.published) &&
58 isDateValid(video.updated) && 58 isDateValid(video.updated) &&