projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46531a0
)
Add missing context fields
author
Chocobozzz
<me@florianbigard.com>
Mon, 29 Jan 2018 10:05:52 +0000
(11:05 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 29 Jan 2018 10:05:52 +0000
(11:05 +0100)
server/helpers/activitypub.ts
patch
|
blob
|
history
diff --git
a/server/helpers/activitypub.ts
b/server/helpers/activitypub.ts
index aa5485850dbfbc8c939879d8fbc966aca6486f98..eaee324eb1e5fe38102033a17847ed579f075728 100644
(file)
--- a/
server/helpers/activitypub.ts
+++ b/
server/helpers/activitypub.ts
@@
-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'
+ }
}
]
})