From 2fe8692797ec8da890a6f954e6c850abc0dbf7e4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 29 Jan 2018 11:05:52 +0100 Subject: [PATCH] Add missing context fields --- server/helpers/activitypub.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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' + } } ] })