mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fetch video likes/dislikes too
This commit is contained in:
parent
d8553faa49
commit
16b9097594
11 changed files with 121 additions and 12 deletions
|
@ -24,6 +24,14 @@ function activityPubContextify <T> (data: T) {
|
|||
})
|
||||
}
|
||||
|
||||
function activityPubCollection (results: any[]) {
|
||||
return {
|
||||
type: 'OrderedCollection',
|
||||
totalItems: results.length,
|
||||
orderedItems: results
|
||||
}
|
||||
}
|
||||
|
||||
function activityPubCollectionPagination (url: string, page: any, result: ResultList<any>) {
|
||||
let next: string
|
||||
let prev: string
|
||||
|
@ -74,5 +82,6 @@ function buildSignedActivity (byAccount: AccountInstance, data: Object) {
|
|||
export {
|
||||
activityPubContextify,
|
||||
activityPubCollectionPagination,
|
||||
activityPubCollection,
|
||||
buildSignedActivity
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue