From 0a67e28beeaf603110d52df3eda400e60531b3a4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Jan 2018 17:25:35 +0100 Subject: Use sensitive instead of nsfw in activitypub --- server/helpers/custom-validators/activitypub/videos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/helpers/custom-validators/activitypub') 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) { (!video.licence || isRemoteIdentifierValid(video.licence)) && (!video.language || isRemoteIdentifierValid(video.language)) && isVideoViewsValid(video.views) && - isBooleanValid(video.nsfw) && + isBooleanValid(video.sensitive) && isBooleanValid(video.commentsEnabled) && isDateValid(video.published) && isDateValid(video.updated) && -- cgit v1.2.3