mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add tests and fix bugs for video privacy
This commit is contained in:
parent
fd45e8f43c
commit
11474c3cd9
8 changed files with 438 additions and 402 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue