diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/activitypub.ts | 2 | ||||
-rw-r--r-- | server/helpers/custom-validators/activitypub/videos.ts | 2 |
2 files changed, 2 insertions, 2 deletions
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 <T> (data: T) { | |||
15 | 'uuid': 'http://schema.org/identifier', | 15 | 'uuid': 'http://schema.org/identifier', |
16 | 'category': 'http://schema.org/category', | 16 | 'category': 'http://schema.org/category', |
17 | 'licence': 'http://schema.org/license', | 17 | 'licence': 'http://schema.org/license', |
18 | 'nsfw': 'as:sensitive', | 18 | 'sensitive': 'as:sensitive', |
19 | 'language': 'http://schema.org/inLanguage', | 19 | 'language': 'http://schema.org/inLanguage', |
20 | 'views': 'http://schema.org/Number', | 20 | 'views': 'http://schema.org/Number', |
21 | 'size': 'http://schema.org/Number', | 21 | '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) { | |||
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) && |