diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-13 16:57:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-14 09:27:18 +0200 |
commit | 26b7305a232e547709f433a6edf700bf495935d8 (patch) | |
tree | b5676090c61df72f864735bcc881d5ee256cffbd /server/controllers/api/users.ts | |
parent | efc9e8450a8bbeeef9cd18e3ad6037abc0f815c3 (diff) | |
download | PeerTube-26b7305a232e547709f433a6edf700bf495935d8.tar.gz PeerTube-26b7305a232e547709f433a6edf700bf495935d8.tar.zst PeerTube-26b7305a232e547709f433a6edf700bf495935d8.zip |
Add blacklist reason field
Diffstat (limited to 'server/controllers/api/users.ts')
-rw-r--r-- | server/controllers/api/users.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts index 0e2be7123..543b20baa 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts | |||
@@ -201,14 +201,14 @@ async function getUserVideos (req: express.Request, res: express.Response, next: | |||
201 | user.Account.id, | 201 | user.Account.id, |
202 | req.query.start as number, | 202 | req.query.start as number, |
203 | req.query.count as number, | 203 | req.query.count as number, |
204 | req.query.sort as VideoSortField, | 204 | req.query.sort as VideoSortField |
205 | false // Display my NSFW videos | ||
206 | ) | 205 | ) |
207 | 206 | ||
208 | const additionalAttributes = { | 207 | const additionalAttributes = { |
209 | waitTranscoding: true, | 208 | waitTranscoding: true, |
210 | state: true, | 209 | state: true, |
211 | scheduledUpdate: true | 210 | scheduledUpdate: true, |
211 | blacklistInfo: true | ||
212 | } | 212 | } |
213 | return res.json(getFormattedObjects(resultList.data, resultList.total, { additionalAttributes })) | 213 | return res.json(getFormattedObjects(resultList.data, resultList.total, { additionalAttributes })) |
214 | } | 214 | } |