diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/config.ts | 5 | ||||
-rw-r--r-- | server/controllers/api/server/follows.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index bd0ba4f9d..f9bb0b947 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -279,6 +279,11 @@ function customConfig (): CustomConfig { | |||
279 | enabled: CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED | 279 | enabled: CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED |
280 | } | 280 | } |
281 | } | 281 | } |
282 | }, | ||
283 | followers: { | ||
284 | instance: { | ||
285 | enabled: CONFIG.FOLLOWERS.INSTANCE.ENABLED | ||
286 | } | ||
282 | } | 287 | } |
283 | } | 288 | } |
284 | } | 289 | } |
diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts index c00069f93..87cf091cb 100644 --- a/server/controllers/api/server/follows.ts +++ b/server/controllers/api/server/follows.ts | |||
@@ -139,7 +139,7 @@ async function removeFollowing (req: express.Request, res: express.Response) { | |||
139 | async function removeFollower (req: express.Request, res: express.Response) { | 139 | async function removeFollower (req: express.Request, res: express.Response) { |
140 | const follow = res.locals.follow | 140 | const follow = res.locals.follow |
141 | 141 | ||
142 | await sendReject(follow) | 142 | await sendReject(follow.ActorFollower, follow.ActorFollowing) |
143 | 143 | ||
144 | await follow.destroy() | 144 | await follow.destroy() |
145 | 145 | ||