From: Chocobozzz Date: Mon, 29 Jan 2018 10:05:52 +0000 (+0100) Subject: Add missing context fields X-Git-Tag: v0.0.16-alpha~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2fe8692797ec8da890a6f954e6c850abc0dbf7e4;p=oweals%2Fpeertube.git Add missing context fields --- 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' + } } ] })