mirror of https://github.com/Chocobozzz/PeerTube
Add missing context fields
parent
46531a0abd
commit
2fe8692797
|
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue