aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/activitypub.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/activitypub.ts')
-rw-r--r--server/helpers/activitypub.ts28
1 files changed, 16 insertions, 12 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts
index a9de11fb0..1304c7559 100644
--- a/server/helpers/activitypub.ts
+++ b/server/helpers/activitypub.ts
@@ -14,20 +14,24 @@ function activityPubContextify <T> (data: T) {
14 'https://w3id.org/security/v1', 14 'https://w3id.org/security/v1',
15 { 15 {
16 RsaSignature2017: 'https://w3id.org/security#RsaSignature2017', 16 RsaSignature2017: 'https://w3id.org/security#RsaSignature2017',
17 pt: 'https://joinpeertube.org/ns',
18 schema: 'http://schema.org#',
17 Hashtag: 'as:Hashtag', 19 Hashtag: 'as:Hashtag',
18 uuid: 'http://schema.org/identifier', 20 uuid: 'schema:identifier',
19 category: 'http://schema.org/category', 21 category: 'schema:category',
20 licence: 'http://schema.org/license', 22 licence: 'schema:license',
21 subtitleLanguage: 'http://schema.org/subtitleLanguage', 23 subtitleLanguage: 'schema:subtitleLanguage',
22 sensitive: 'as:sensitive', 24 sensitive: 'as:sensitive',
23 language: 'http://schema.org/inLanguage', 25 language: 'schema:inLanguage',
24 views: 'http://schema.org/Number', 26 views: 'schema:Number',
25 stats: 'http://schema.org/Number', 27 stats: 'schema:Number',
26 size: 'http://schema.org/Number', 28 size: 'schema:Number',
27 fps: 'http://schema.org/Number', 29 fps: 'schema:Number',
28 commentsEnabled: 'http://schema.org/Boolean', 30 commentsEnabled: 'schema:Boolean',
29 waitTranscoding: 'http://schema.org/Boolean', 31 waitTranscoding: 'schema:Boolean',
30 support: 'http://schema.org/Text' 32 expires: 'schema:expires',
33 support: 'schema:Text',
34 CacheFile: 'pt:CacheFile'
31 }, 35 },
32 { 36 {
33 likes: { 37 likes: {