allow_anon_event, comment via mastodon

This commit is contained in:
lesion
2019-06-25 01:05:38 +02:00
parent 3c9c85e268
commit b093dae3f3
32 changed files with 259 additions and 219 deletions

View File

@@ -34,10 +34,17 @@ module.exports = {
is_active: true
})
// set default settings
consola.info('Set default settings')
const settings = require('./api/controller/settings')
settings.set('enable_registration', true)
settings.set('allow_anon_event', true)
settings.set('allow_mastodon_association', true)
await settings.set('allow_registration', true)
await settings.set('allow_anon_event', true)
// add default notification
consola.info('Add default notification')
// send confirmed event to mastodon
await db.notification.create({ type: 'mastodon', filters: { is_visible: true } })
// await notification.create({ type: 'mastodon', filters: { is_visible: true } })
}
}