aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/helpers/activitypub.ts18
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 })