aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/videos/videos.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index 1fcc949da..84b79b253 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -161,13 +161,14 @@ function getLocalVideos (url: string) {
161 .expect('Content-Type', /json/) 161 .expect('Content-Type', /json/)
162} 162}
163 163
164function getMyVideos (url: string, accessToken: string, start: number, count: number, sort?: string) { 164function getMyVideos (url: string, accessToken: string, start: number, count: number, sort?: string, search?: string) {
165 const path = '/api/v1/users/me/videos' 165 const path = '/api/v1/users/me/videos'
166 166
167 const req = request(url) 167 const req = request(url)
168 .get(path) 168 .get(path)
169 .query({ start: start }) 169 .query({ start: start })
170 .query({ count: count }) 170 .query({ count: count })
171 .query({ search: search })
171 172
172 if (sort) req.query({ sort }) 173 if (sort) req.query({ sort })
173 174