ActivityPub-federated video streaming platform using P2P directly in your web browser
[Server>Middlewares>Follows] Changing error code 400 to 500
Jorropoa3c1738eeaa3
diff --git a/server/middlewares/validators/follows.ts b/server/middlewares/validators/follows.tsindex bdf39eb9c5..040ee1f217 100644--- a/server/middlewares/validators/follows.ts+++ b/server/middlewares/validators/follows.ts@@ -14,7 +14,7 @@ const followValidator = [(req: express.Request, res: express.Response, next: express.NextFunction) => {// Force https if the administrator wants to make friendsif (isTestInstance() === false && CONFIG.WEBSERVER.SCHEME === 'http') {- return res.status(400)+ return res.status(500).json({error: 'Cannot follow on a non HTTPS web server.'})