annonce @home / admin / controller / route / api

This commit is contained in:
les
2020-02-16 21:03:50 +01:00
parent a1204c24e1
commit 04e2dc07aa
15 changed files with 313 additions and 15 deletions

View File

@@ -54,6 +54,12 @@ module.exports = {
// add default notification
consola.info('Add default notification')
// await db.announcement.create({
// visible: true,
// title: 'Welcome to Gancio',
// announcement: 'TODO: HTML First presentation post'
// })
// send confirmed event to mastodon
await db.notification.create({ action: 'Create', type: 'ap', filters: { is_visible: true } })
await db.notification.create({ action: 'Update', type: 'ap', filters: { is_visible: true } })