diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-19 13:43:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 13:43:33 +0100 |
commit | 370240824e2fb28b314255f6c23f5ea7d6b08625 (patch) | |
tree | 6d4350fd93ea0b960bd278a948cecbdfbd2b67d7 /shared | |
parent | 2264c1ceedcf27998108b8f8b706e51ed910d4fb (diff) | |
download | PeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.tar.gz PeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.tar.zst PeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.zip |
Allow users/visitors to search through an account's videos (#3589)
* WIP: account search
* add search to account view
* add tests for account search
Diffstat (limited to 'shared')
-rw-r--r-- | shared/extra-utils/videos/videos.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts index a2438d712..392eddcc5 100644 --- a/shared/extra-utils/videos/videos.ts +++ b/shared/extra-utils/videos/videos.ts | |||
@@ -194,7 +194,10 @@ function getAccountVideos ( | |||
194 | start: number, | 194 | start: number, |
195 | count: number, | 195 | count: number, |
196 | sort?: string, | 196 | sort?: string, |
197 | query: { nsfw?: boolean } = {} | 197 | query: { |
198 | nsfw?: boolean | ||
199 | search?: string | ||
200 | } = {} | ||
198 | ) { | 201 | ) { |
199 | const path = '/api/v1/accounts/' + accountName + '/videos' | 202 | const path = '/api/v1/accounts/' + accountName + '/videos' |
200 | 203 | ||