mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add ability to view my followers
This commit is contained in:
parent
9593a78ae1
commit
4beda9e12a
47 changed files with 799 additions and 248 deletions
|
@ -98,7 +98,7 @@ export {
|
|||
|
||||
async function listFollowing (req: express.Request, res: express.Response) {
|
||||
const serverActor = await getServerActor()
|
||||
const resultList = await ActorFollowModel.listFollowingForApi({
|
||||
const resultList = await ActorFollowModel.listInstanceFollowingForApi({
|
||||
id: serverActor.id,
|
||||
start: req.query.start,
|
||||
count: req.query.count,
|
||||
|
@ -114,7 +114,7 @@ async function listFollowing (req: express.Request, res: express.Response) {
|
|||
async function listFollowers (req: express.Request, res: express.Response) {
|
||||
const serverActor = await getServerActor()
|
||||
const resultList = await ActorFollowModel.listFollowersForApi({
|
||||
actorId: serverActor.id,
|
||||
actorIds: [ serverActor.id ],
|
||||
start: req.query.start,
|
||||
count: req.query.count,
|
||||
sort: req.query.sort,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue