ActivityPub-federated video streaming platform using P2P directly in your web browser
Server: Don't make the host url check for client credentials if this is a test instance
Chocobozzzf9f5478ca077
diff --git a/server/controllers/api/v1/users.js b/server/controllers/api/v1/users.jsindex dde459a73e..3f8d8ad92e 100644--- a/server/controllers/api/v1/users.js+++ b/server/controllers/api/v1/users.js@@ -27,7 +27,10 @@ function getAngularClient (req, res, next) {headerHostShouldBe += ':' + serverPort}- if (req.get('host') !== headerHostShouldBe) return res.type('json').status(403).end()+ // Don't make this check if this is a test instance+ if (process.env.NODE_ENV !== 'test' && req.get('host') !== headerHostShouldBe) {+ return res.type('json').status(403).end()+ }Client.loadFirstClient(function (err, client) {if (err) return next(err)