diff options
Diffstat (limited to 'server/middlewares/validators/follows.ts')
-rw-r--r-- | server/middlewares/validators/follows.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/middlewares/validators/follows.ts b/server/middlewares/validators/follows.ts index 7dadf6a19..991a2e175 100644 --- a/server/middlewares/validators/follows.ts +++ b/server/middlewares/validators/follows.ts | |||
@@ -41,7 +41,11 @@ const removeFollowingValidator = [ | |||
41 | const follow = await ActorFollowModel.loadByActorAndTargetHost(serverActor.id, req.params.host) | 41 | const follow = await ActorFollowModel.loadByActorAndTargetHost(serverActor.id, req.params.host) |
42 | 42 | ||
43 | if (!follow) { | 43 | if (!follow) { |
44 | return res.status(404) | 44 | return res |
45 | .status(404) | ||
46 | .json({ | ||
47 | error: `Follower ${req.params.host} not found.` | ||
48 | }) | ||
45 | .end() | 49 | .end() |
46 | } | 50 | } |
47 | 51 | ||