diff options
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: { |