diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-19 10:35:15 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-03-19 10:35:15 +0100 |
commit | dae86118ed5d4026d04acb9d0e36829b9ad8eb4e (patch) | |
tree | a5bf9c4487240bf75a9b328cad459a0587f90dea /server/controllers/webfinger.ts | |
parent | e65c0c5b1fab9c3d93f51721b2458cf5cf471f20 (diff) | |
download | PeerTube-dae86118ed5d4026d04acb9d0e36829b9ad8eb4e.tar.gz PeerTube-dae86118ed5d4026d04acb9d0e36829b9ad8eb4e.tar.zst PeerTube-dae86118ed5d4026d04acb9d0e36829b9ad8eb4e.zip |
Cleanup express locals typings
Diffstat (limited to 'server/controllers/webfinger.ts')
-rw-r--r-- | server/controllers/webfinger.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/controllers/webfinger.ts b/server/controllers/webfinger.ts index ed781c21b..f2ba3c826 100644 --- a/server/controllers/webfinger.ts +++ b/server/controllers/webfinger.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { asyncMiddleware } from '../middlewares' | 2 | import { asyncMiddleware } from '../middlewares' |
3 | import { webfingerValidator } from '../middlewares/validators' | 3 | import { webfingerValidator } from '../middlewares/validators' |
4 | import { ActorModel } from '../models/activitypub/actor' | ||
5 | 4 | ||
6 | const webfingerRouter = express.Router() | 5 | const webfingerRouter = express.Router() |
7 | 6 | ||
@@ -18,8 +17,8 @@ export { | |||
18 | 17 | ||
19 | // --------------------------------------------------------------------------- | 18 | // --------------------------------------------------------------------------- |
20 | 19 | ||
21 | function webfingerController (req: express.Request, res: express.Response, next: express.NextFunction) { | 20 | function webfingerController (req: express.Request, res: express.Response) { |
22 | const actor = res.locals.actor as ActorModel | 21 | const actor = res.locals.actor |
23 | 22 | ||
24 | const json = { | 23 | const json = { |
25 | subject: req.query.resource, | 24 | subject: req.query.resource, |