]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/webfinger.ts
Fix i18n generation
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / webfinger.ts
index d7cfe17f00ea41ab0c43e7f6dfc002e999109f2e..d50e6527fe4ac7ab3d9764c6372e90b96df91163 100644 (file)
@@ -18,6 +18,7 @@ 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)
     if (!actor) {
       return res.status(404)
@@ -25,7 +26,7 @@ const webfingerValidator = [
         .end()
     }
 
-    res.locals.actor = actor
+    res.locals.actorFull = actor
     return next()
   }
 ]