[refactor] remove username field and let instance_name be the only AP Actor
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.toAP(event.user.username))
|
||||
return res.json(event.toNoteAP(event.user.username))
|
||||
})
|
||||
|
||||
// get any message coming from federation
|
||||
|
||||
Reference in New Issue
Block a user