keep going with federation

This commit is contained in:
lesion
2019-08-03 00:48:48 +02:00
parent 9b2015f46f
commit 202e59c1bc
4 changed files with 13 additions and 9 deletions

View File

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