mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Fetch outbox to grab old activities tests
This commit is contained in:
parent
c986175d68
commit
c46edbc2f6
11 changed files with 81 additions and 30 deletions
|
@ -56,7 +56,7 @@ async function accountController (req: express.Request, res: express.Response, n
|
|||
async function accountFollowersController (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 result = await db.AccountFollow.listAcceptedFollowerUrlsForApi([ account.id ], start, count)
|
||||
|
@ -68,7 +68,7 @@ async function accountFollowersController (req: express.Request, res: express.Re
|
|||
async function accountFollowingController (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 result = await db.AccountFollow.listAcceptedFollowingUrlsForApi([ account.id ], start, count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue