Merge branch 'master' into dev

This commit is contained in:
les
2020-11-04 00:42:41 +01:00
4 changed files with 35 additions and 8 deletions

View File

@@ -62,13 +62,15 @@ module.exports = {
// announcement: 'TODO: HTML First presentation post'
// })
// send confirmed events to mastodon
await Notification.create({ action: 'Create', type: 'ap', filters: { is_visible: true } })
await Notification.create({ action: 'Update', type: 'ap', filters: { is_visible: true } })
await Notification.create({ action: 'Delete', type: 'ap', filters: { is_visible: true } })
// try {
// send anon events to admin
await Notification.create({ action: 'Create', type: 'admin_email', filters: { is_visible: false } })
// // send confirmed events to mastodon
await Notification.create({ action: 'Create', type: 'ap', filters: '{ "is_visible": true }' })
await Notification.create({ action: 'Update', type: 'ap', filters: '{ "is_visible": true }' })
await Notification.create({ action: 'Delete', type: 'ap', filters: '{ "is_visible": true }' })
// // send anon events to admin
await Notification.create({ action: 'Create', type: 'admin_email', filters: '{ "is_visible": false }' })
// }
// TODO email's notifications
// await db.notification.create({ action: 'Create', type: 'email', filters: { is_visible: true } })