mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add MANAGE_PEERTUBE_FOLLOW right
This commit is contained in:
parent
ce548a10db
commit
8e69648749
6 changed files with 23 additions and 19 deletions
|
@ -46,7 +46,7 @@ async function accountFollowersController (req: express.Request, res: express.Re
|
|||
const page = req.params.page || 1
|
||||
const { start, count } = pageToStartAndCount(page, ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE)
|
||||
|
||||
const result = await db.Account.listFollowerUrlsForApi(account.id, start, count)
|
||||
const result = await db.Account.listAcceptedFollowerUrlsForApi(account.id, start, count)
|
||||
const activityPubResult = activityPubCollectionPagination(req.url, page, result)
|
||||
|
||||
return res.json(activityPubResult)
|
||||
|
@ -58,7 +58,7 @@ async function accountFollowingController (req: express.Request, res: express.Re
|
|||
const page = req.params.page || 1
|
||||
const { start, count } = pageToStartAndCount(page, ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE)
|
||||
|
||||
const result = await db.Account.listFollowingUrlsForApi(account.id, start, count)
|
||||
const result = await db.Account.listAcceptedFollowingUrlsForApi(account.id, start, count)
|
||||
const activityPubResult = activityPubCollectionPagination(req.url, page, result)
|
||||
|
||||
return res.json(activityPubResult)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue