const nameWithHost = getHostWithPort(req.query.resource.substr(5))
const [ name ] = nameWithHost.split('@')
+ // FIXME: we don't need the full actor
const actor = await ActorModel.loadLocalByName(name)
if (!actor) {
return res.status(404)
.end()
}
- res.locals.actor = actor
+ res.locals.actorFull = actor
return next()
}
]