s/toAPNote/toAPEvent/

This commit is contained in:
lesion
2021-11-10 11:03:55 +01:00
parent 38fe9032c1
commit 8a7a60f84d
4 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ router.get('/m/:event_id', async (req, res) => {
const event = await Event.findByPk(req.params.event_id, { include: [User, Tag, Place] })
if (!event) { return res.status(404).send('Not found') }
return res.json(event.toAPNote(settingsController.settings.instance_name, req.settings.instance_locale))
return res.json(event.toAP(settingsController.settings.instance_name, req.settings.instance_locale))
})
// get any message coming from federation