[fix] #56 unconfirmed event sent via ap

This commit is contained in:
les
2019-11-06 11:29:00 +01:00
parent a9ef9f71fc
commit 4b6b431a28

View File

@@ -119,8 +119,11 @@ const userController = {
res.json(event)
// send notification (mastodon/email)
// only if user is authenticated
if (req.user) {
const notifier = require('../../notifier')
notifier.notifyEvent('Create', event.id)
}
},
async updateEvent (req, res) {