1
0
Fork 0
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:
Chocobozzz 2021-10-19 09:44:43 +02:00
parent 9593a78ae1
commit 4beda9e12a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
47 changed files with 799 additions and 248 deletions

View file

@ -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,