mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add overview of a user's actions in user-edit (#2558)
This commit is contained in:
@@ -130,11 +130,12 @@ function getMyUserVideoQuotaUsed (url: string, accessToken: string, specialStatu
|
||||
.expect('Content-Type', /json/)
|
||||
}
|
||||
|
||||
function getUserInformation (url: string, accessToken: string, userId: number) {
|
||||
function getUserInformation (url: string, accessToken: string, userId: number, withStats = false) {
|
||||
const path = '/api/v1/users/' + userId
|
||||
|
||||
return request(url)
|
||||
.get(path)
|
||||
.query({ withStats })
|
||||
.set('Accept', 'application/json')
|
||||
.set('Authorization', 'Bearer ' + accessToken)
|
||||
.expect(200)
|
||||
|
||||
Reference in New Issue
Block a user