diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-11 16:27:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-13 14:05:49 +0200 |
commit | c48e82b5e0478434de30626d14594a97f2402e7c (patch) | |
tree | a78e5272bd0fe4f5b41831e571e02d05f1515b82 /server/helpers/activitypub.ts | |
parent | a651038487faa838bda3ce04695b08bc65baff70 (diff) | |
download | PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.tar.gz PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.tar.zst PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.zip |
Basic video redundancy implementation
Diffstat (limited to 'server/helpers/activitypub.ts')
-rw-r--r-- | server/helpers/activitypub.ts | 28 |
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: { |