Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add missing context fields

Chocobozzz2fe8692797ec
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts
index aa5485850d..eaee324eb1 100644
--- a/server/helpers/activitypub.ts
+++ b/server/helpers/activitypub.ts
@@ -20,6 +20,24 @@ function activityPubContextify <T> (data: T) {
'views': 'http://schema.org/Number',
'size': 'http://schema.org/Number',
'commentsEnabled': 'http://schema.org/Boolean'
+ },
+ {
+ likes: {
+ '@id': 'as:likes',
+ '@type': '@id'
+ },
+ dislikes: {
+ '@id': 'as:dislikes',
+ '@type': '@id'
+ },
+ shares: {
+ '@id': 'as:shares',
+ '@type': '@id'
+ },
+ comments: {
+ '@id': 'as:comments',
+ '@type': '@id'
+ }
}
]
})