Add missing context fields

pull/267/head
Chocobozzz 2018-01-29 11:05:52 +01:00
parent 46531a0abd
commit 2fe8692797
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 18 additions and 0 deletions

View File

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