aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/activitypub.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-08 09:24:04 +0200
committerChocobozzz <me@florianbigard.com>2019-04-08 09:24:04 +0200
commitae3171b66001bab3b67e6ea87190339e3cc3b677 (patch)
tree433657fe09142b532e009feb5b1ca737fabde22f /server/helpers/activitypub.ts
parent0f4905e120e66c5227ca3c57074e3e8554424621 (diff)
downloadPeerTube-ae3171b66001bab3b67e6ea87190339e3cc3b677.tar.gz
PeerTube-ae3171b66001bab3b67e6ea87190339e3cc3b677.tar.zst
PeerTube-ae3171b66001bab3b67e6ea87190339e3cc3b677.zip
Fix jsonld context
Diffstat (limited to 'server/helpers/activitypub.ts')
-rw-r--r--server/helpers/activitypub.ts57
1 files changed, 45 insertions, 12 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts
index 31c6187d1..dc42068d8 100644
--- a/server/helpers/activitypub.ts
+++ b/server/helpers/activitypub.ts
@@ -24,21 +24,54 @@ function activityPubContextify <T> (data: T) {
24 subtitleLanguage: 'sc:subtitleLanguage', 24 subtitleLanguage: 'sc:subtitleLanguage',
25 sensitive: 'as:sensitive', 25 sensitive: 'as:sensitive',
26 language: 'sc:inLanguage', 26 language: 'sc:inLanguage',
27 views: 'sc:Number',
28 state: 'sc:Number',
29 size: 'sc:Number',
30 fps: 'sc:Number',
31 startTimestamp: 'sc:Number',
32 stopTimestamp: 'sc:Number',
33 position: 'sc:Number',
34 commentsEnabled: 'sc:Boolean',
35 downloadEnabled: 'sc:Boolean',
36 waitTranscoding: 'sc:Boolean',
37 expires: 'sc:expires', 27 expires: 'sc:expires',
38 support: 'sc:Text',
39 CacheFile: 'pt:CacheFile', 28 CacheFile: 'pt:CacheFile',
40 Infohash: 'pt:Infohash', 29 Infohash: 'pt:Infohash',
41 originallyPublishedAt: 'sc:DateTime' 30 originallyPublishedAt: 'sc:datePublished',
31 views: {
32 type: 'sc:Number',
33 '@id': 'pt:views'
34 },
35 state: {
36 type: 'sc:Number',
37 '@id': 'pt:state'
38 },
39 size: {
40 type: 'sc:Number',
41 '@id': 'pt:size'
42 },
43 fps: {
44 type: 'sc:Number',
45 '@id': 'pt:fps'
46 },
47 startTimestamp: {
48 type: 'sc:Number',
49 '@id': 'pt:startTimestamp'
50 },
51 stopTimestamp: {
52 type: 'sc:Number',
53 '@id': 'pt:stopTimestamp'
54 },
55 position: {
56 type: 'sc:Number',
57 '@id': 'pt:position'
58 },
59 commentsEnabled: {
60 type: 'sc:Boolean',
61 '@id': 'pt:commentsEnabled'
62 },
63 downloadEnabled: {
64 type: 'sc:Boolean',
65 '@id': 'pt:downloadEnabled'
66 },
67 waitTranscoding: {
68 type: 'sc:Boolean',
69 '@id': 'pt:waitTranscoding'
70 },
71 support: {
72 type: 'sc:Text',
73 '@id': 'pt:support'
74 }
42 }, 75 },
43 { 76 {
44 likes: { 77 likes: {