allow_anon_event, comment via mastodon

This commit is contained in:
lesion
2019-06-25 01:05:38 +02:00
parent 3c9c85e268
commit b093dae3f3
32 changed files with 259 additions and 219 deletions

View File

@@ -95,7 +95,9 @@ const eventController = {
],
order: [ [Comment, 'id', 'DESC'], [Tag, 'weigth', 'DESC'] ]
})
if (event) {
event.activitypub_id = event.activitypub_id ? String(event.activitypub_id) : null
res.json(event)
} else {
res.sendStatus(404)