aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/server/follows.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts
index c613386b2..9557810b5 100644
--- a/server/controllers/api/server/follows.ts
+++ b/server/controllers/api/server/follows.ts
@@ -99,7 +99,7 @@ export {
99async function listFollowing (req: express.Request, res: express.Response) { 99async function listFollowing (req: express.Request, res: express.Response) {
100 const serverActor = await getServerActor() 100 const serverActor = await getServerActor()
101 const resultList = await ActorFollowModel.listInstanceFollowingForApi({ 101 const resultList = await ActorFollowModel.listInstanceFollowingForApi({
102 id: serverActor.id, 102 followerId: serverActor.id,
103 start: req.query.start, 103 start: req.query.start,
104 count: req.query.count, 104 count: req.query.count,
105 sort: req.query.sort, 105 sort: req.query.sort,
@@ -159,7 +159,7 @@ async function removeFollowing (req: express.Request, res: express.Response) {
159 const follow = res.locals.follow 159 const follow = res.locals.follow
160 160
161 await sequelizeTypescript.transaction(async t => { 161 await sequelizeTypescript.transaction(async t => {
162 if (follow.state === 'accepted') await sendUndoFollow(follow, t) 162 if (follow.state === 'accepted') sendUndoFollow(follow, t)
163 163
164 // Disable redundancy on unfollowed instances 164 // Disable redundancy on unfollowed instances
165 const server = follow.ActorFollowing.Server 165 const server = follow.ActorFollowing.Server