fix: body parse ld+json coming from fediverse

This commit is contained in:
lesion 2023-12-20 14:08:42 +01:00
parent 3b71fe8a75
commit f96c8261d7
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -24,7 +24,7 @@ router.use((_req, res, next) => {
return res.status(401).send('Federation disabled')
})
router.use(express.json({ type: ['application/json', 'application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'] }))
router.use(express.json({ type: ['application/json', 'application/activity+json', 'application/ld+json'] }))
router.get('/m/:event_id', async (req, res) => {
log.debug('[AP] Get event details ')