[feat] new enable_comments disable_gamification

This commit is contained in:
les
2019-10-22 01:01:41 +02:00
parent 19ca6e8f38
commit 20dc56cb8f
3 changed files with 17 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ const debug = require('debug')('federation')
* ref: https://www.w3.org/TR/activitypub/#Overview
*/
router.use(cors())
router.use((req, res, next) => {
if(settingsController.settings.enable_federation) return next()
debug('Federation disabled!')
@@ -22,7 +23,6 @@ router.use((req, res, next) => {
next(false)
})
router.use(cors())
router.use(express.json({ type: ['application/json', 'application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'] }))
router.get('/m/:event_id', async (req, res) => {