check event on comment from federation

This commit is contained in:
les
2019-08-09 14:37:51 +02:00
parent 181557aa43
commit f722187c65
3 changed files with 16 additions and 16 deletions

View File

@@ -62,8 +62,7 @@ router.post('/u/:name/inbox', Helpers.verifySignature, async (req, res) => {
case 'Create':
// this is a reply
if (b.object.type === 'Note' && b.object.inReplyTo) {
await Comments.create(b)
res.status(201).send()
await Comments.create(req, res)
} else {
console.error('Create what? ', b.object.type)
}