diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-29 11:05:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-29 11:05:52 +0100 |
commit | 2fe8692797ec8da890a6f954e6c850abc0dbf7e4 (patch) | |
tree | 3196c782637f100eb86e945992ed044f010c54d6 | |
parent | 46531a0abdd5c860a1a8cdb4b636b9c55bfb115b (diff) | |
download | PeerTube-2fe8692797ec8da890a6f954e6c850abc0dbf7e4.tar.gz PeerTube-2fe8692797ec8da890a6f954e6c850abc0dbf7e4.tar.zst PeerTube-2fe8692797ec8da890a6f954e6c850abc0dbf7e4.zip |
Add missing context fields
-rw-r--r-- | server/helpers/activitypub.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index aa5485850..eaee324eb 100644 --- a/server/helpers/activitypub.ts +++ b/server/helpers/activitypub.ts | |||
@@ -20,6 +20,24 @@ function activityPubContextify <T> (data: T) { | |||
20 | 'views': 'http://schema.org/Number', | 20 | 'views': 'http://schema.org/Number', |
21 | 'size': 'http://schema.org/Number', | 21 | 'size': 'http://schema.org/Number', |
22 | 'commentsEnabled': 'http://schema.org/Boolean' | 22 | 'commentsEnabled': 'http://schema.org/Boolean' |
23 | }, | ||
24 | { | ||
25 | likes: { | ||
26 | '@id': 'as:likes', | ||
27 | '@type': '@id' | ||
28 | }, | ||
29 | dislikes: { | ||
30 | '@id': 'as:dislikes', | ||
31 | '@type': '@id' | ||
32 | }, | ||
33 | shares: { | ||
34 | '@id': 'as:shares', | ||
35 | '@type': '@id' | ||
36 | }, | ||
37 | comments: { | ||
38 | '@id': 'as:comments', | ||
39 | '@type': '@id' | ||
40 | } | ||
23 | } | 41 | } |
24 | ] | 42 | ] |
25 | }) | 43 | }) |