diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/server/follows.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts index c9775ad21..ac8ea87f9 100644 --- a/server/controllers/api/server/follows.ts +++ b/server/controllers/api/server/follows.ts | |||
@@ -108,7 +108,11 @@ async function follow (req: express.Request, res: express.Response, next: expres | |||
108 | tasks.push(p) | 108 | tasks.push(p) |
109 | } | 109 | } |
110 | 110 | ||
111 | await Promise.all(tasks) | 111 | // Don't make the client wait the tasks |
112 | Promise.all(tasks) | ||
113 | .catch(err => { | ||
114 | logger.error('Error in follow.', err) | ||
115 | }) | ||
112 | 116 | ||
113 | return res.status(204).end() | 117 | return res.status(204).end() |
114 | } | 118 | } |