1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Fetch outbox to grab old activities tests

This commit is contained in:
Chocobozzz 2017-11-22 11:27:40 +01:00
parent c986175d68
commit c46edbc2f6
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 81 additions and 30 deletions

View file

@ -28,7 +28,7 @@ export {
async function outboxController (req: express.Request, res: express.Response, next: express.NextFunction) {
const account: AccountInstance = res.locals.account
const page = req.params.page || 1
const page = req.query.page || 1
const { start, count } = pageToStartAndCount(page, ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE)
const data = await db.Video.listAllAndSharedByAccountForOutbox(account.id, start, count)