refactoring locales management
This commit is contained in:
@@ -33,7 +33,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.toNoteAP(event.user.username))
|
||||
return res.json(event.toNoteAP(event.user.username, req.settings.locale))
|
||||
})
|
||||
|
||||
// get any message coming from federation
|
||||
|
||||
Reference in New Issue
Block a user