mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix federation disabled middleware
This commit is contained in:
parent
7fdd0f0537
commit
d435f55ae3
2 changed files with 2 additions and 3 deletions
|
@ -23,8 +23,7 @@ router.use(cors())
|
|||
router.use((req, res, next) => {
|
||||
if (settingsController.settings.enable_federation) { return next() }
|
||||
log.debug('Federation disabled!')
|
||||
res.status(401).send('Federation disabled')
|
||||
next(false)
|
||||
return res.status(401).send('Federation disabled')
|
||||
})
|
||||
|
||||
router.use(express.json({ type: ['application/json', 'application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'] }))
|
||||
|
|
Loading…
Reference in a new issue