diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-12 20:04:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-12 20:37:51 +0200 |
commit | 2186386cca113506791583cb07d6ccacba7af4e0 (patch) | |
tree | 3c214c0b5fbd64332624267fa6e51fd4a9cf6474 /server/helpers/activitypub.ts | |
parent | 6ccdf3a23ecec5ba2eeaf487fd1fafdc7606b4bf (diff) | |
download | PeerTube-2186386cca113506791583cb07d6ccacba7af4e0.tar.gz PeerTube-2186386cca113506791583cb07d6ccacba7af4e0.tar.zst PeerTube-2186386cca113506791583cb07d6ccacba7af4e0.zip |
Add concept of video state, and add ability to wait transcoding before
publishing a video
Diffstat (limited to 'server/helpers/activitypub.ts')
-rw-r--r-- | server/helpers/activitypub.ts | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index d1f3ec02d..37a251697 100644 --- a/server/helpers/activitypub.ts +++ b/server/helpers/activitypub.ts | |||
@@ -8,22 +8,24 @@ import { signObject } from './peertube-crypto' | |||
8 | import { pageToStartAndCount } from './core-utils' | 8 | import { pageToStartAndCount } from './core-utils' |
9 | 9 | ||
10 | function activityPubContextify <T> (data: T) { | 10 | function activityPubContextify <T> (data: T) { |
11 | return Object.assign(data,{ | 11 | return Object.assign(data, { |
12 | '@context': [ | 12 | '@context': [ |
13 | 'https://www.w3.org/ns/activitystreams', | 13 | 'https://www.w3.org/ns/activitystreams', |
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 | 'Hashtag': 'as:Hashtag', | 17 | Hashtag: 'as:Hashtag', |
18 | 'uuid': 'http://schema.org/identifier', | 18 | uuid: 'http://schema.org/identifier', |
19 | 'category': 'http://schema.org/category', | 19 | category: 'http://schema.org/category', |
20 | 'licence': 'http://schema.org/license', | 20 | licence: 'http://schema.org/license', |
21 | 'sensitive': 'as:sensitive', | 21 | sensitive: 'as:sensitive', |
22 | 'language': 'http://schema.org/inLanguage', | 22 | language: 'http://schema.org/inLanguage', |
23 | 'views': 'http://schema.org/Number', | 23 | views: 'http://schema.org/Number', |
24 | 'size': 'http://schema.org/Number', | 24 | stats: 'http://schema.org/Number', |
25 | 'commentsEnabled': 'http://schema.org/Boolean', | 25 | size: 'http://schema.org/Number', |
26 | 'support': 'http://schema.org/Text' | 26 | commentsEnabled: 'http://schema.org/Boolean', |
27 | waitTranscoding: 'http://schema.org/Boolean', | ||
28 | support: 'http://schema.org/Text' | ||
27 | }, | 29 | }, |
28 | { | 30 | { |
29 | likes: { | 31 | likes: { |