diff --git a/nuxt.config.js b/nuxt.config.js index fc249054..fc3be3f3 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -24,7 +24,7 @@ module.exports = { ** Global CSS */ css: [ - 'vuetify/dist/vuetify.min.css', + 'vuetify/dist/vuetify.min.css', '@mdi/font/css/materialdesignicons.css', '@/assets/style.less' ], diff --git a/server/federation/index.js b/server/federation/index.js index 083ddf6b..83824e6b 100644 --- a/server/federation/index.js +++ b/server/federation/index.js @@ -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"'] }))