mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Send server announce when users upload a video
This commit is contained in:
parent
d846501818
commit
efc32059d9
22 changed files with 161 additions and 80 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.AccountFollow.listAcceptedFollowerUrlsForApi(account.id, start, count)
|
||||
const result = await db.AccountFollow.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.AccountFollow.listAcceptedFollowingUrlsForApi(account.id, start, count)
|
||||
const result = await db.AccountFollow.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