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 (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' + } } ] })