From 0374b6b5cd685316f924874b2a3068bb345eb0dd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 28 Jan 2020 14:45:17 +0100 Subject: Cleanup server fixme --- server/middlewares/validators/webfinger.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/middlewares/validators') diff --git a/server/middlewares/validators/webfinger.ts b/server/middlewares/validators/webfinger.ts index d50e6527f..5fe864f8b 100644 --- a/server/middlewares/validators/webfinger.ts +++ b/server/middlewares/validators/webfinger.ts @@ -18,15 +18,14 @@ const webfingerValidator = [ 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) + const actor = await ActorModel.loadLocalUrlByName(name) if (!actor) { return res.status(404) .send({ error: 'Actor not found' }) .end() } - res.locals.actorFull = actor + res.locals.actorUrl = actor return next() } ] -- cgit v1.2.3