From 76314386aeafdd6849b7b70c517779d6b2013473 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 27 Mar 2020 15:19:03 +0100 Subject: Add overview of a user's actions in user-edit (#2558) --- shared/extra-utils/users/users.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/extra-utils') diff --git a/shared/extra-utils/users/users.ts b/shared/extra-utils/users/users.ts index 248af2d6e..54b506bce 100644 --- a/shared/extra-utils/users/users.ts +++ b/shared/extra-utils/users/users.ts @@ -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) -- cgit v1.2.3