Fetch outbox to grab old activities
This commit is contained in:
parent
e71bcc0f4b
commit
c986175d68
15 changed files with 146 additions and 46 deletions
|
@ -46,14 +46,16 @@ function activityPubCollectionPagination (url: string, page: number, result: Res
|
|||
orderedItems: result.data
|
||||
}
|
||||
|
||||
const obj = {
|
||||
id: url,
|
||||
type: 'OrderedCollection',
|
||||
totalItems: result.total,
|
||||
orderedItems: orderedCollectionPagination
|
||||
if (page === 1) {
|
||||
return activityPubContextify({
|
||||
id: url,
|
||||
type: 'OrderedCollection',
|
||||
totalItems: result.total,
|
||||
first: orderedCollectionPagination
|
||||
})
|
||||
}
|
||||
|
||||
return activityPubContextify(obj)
|
||||
return orderedCollectionPagination
|
||||
}
|
||||
|
||||
function buildSignedActivity (byAccount: AccountInstance, data: Object) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue