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/activitypub.ts | 2 +- server/helpers/custom-validators/activitypub/videos.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers') diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index a19726beb..97115680c 100644 --- a/server/helpers/activitypub.ts +++ b/server/helpers/activitypub.ts @@ -15,7 +15,7 @@ function activityPubContextify (data: T) { 'uuid': 'http://schema.org/identifier', 'category': 'http://schema.org/category', 'licence': 'http://schema.org/license', - 'nsfw': 'as:sensitive', + 'sensitive': 'as:sensitive', 'language': 'http://schema.org/inLanguage', 'views': 'http://schema.org/Number', 'size': 'http://schema.org/Number', 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