From 11474c3cd904fa0fc07fc0a3a9a35496da17f300 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 15:20:35 +0100 Subject: Add tests and fix bugs for video privacy --- server/controllers/api/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts index dcd407fdf..bacfc4552 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts @@ -171,7 +171,7 @@ async function getUserInformation (req: express.Request, res: express.Response, } function getUser (req: express.Request, res: express.Response, next: express.NextFunction) { - return res.json(res.locals.oauth.token.User.toFormattedJSON()) + return res.json(res.locals.user.toFormattedJSON()) } async function getUserVideoRating (req: express.Request, res: express.Response, next: express.NextFunction) { -- cgit v1.2.3