[fix] #56 unconfirmed event sent via ap
This commit is contained in:
@@ -119,8 +119,11 @@ const userController = {
|
|||||||
res.json(event)
|
res.json(event)
|
||||||
|
|
||||||
// send notification (mastodon/email)
|
// send notification (mastodon/email)
|
||||||
|
// only if user is authenticated
|
||||||
|
if (req.user) {
|
||||||
const notifier = require('../../notifier')
|
const notifier = require('../../notifier')
|
||||||
notifier.notifyEvent('Create', event.id)
|
notifier.notifyEvent('Create', event.id)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
async updateEvent (req, res) {
|
async updateEvent (req, res) {
|
||||||
|
|||||||
Reference in New Issue
Block a user