diff options
author | Wicklow <123956049+wickloww@users.noreply.github.com> | 2023-04-12 07:32:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 09:32:20 +0200 |
commit | 2a4c0d8bbe29178ae90e776bb9453f86e6d23bd9 (patch) | |
tree | dfe4b6e1e06f617f8968285ca394e73fedefe6b2 /server/helpers | |
parent | 0cda019c1d1f77e06e524362880c38e93b1f5c70 (diff) | |
download | PeerTube-2a4c0d8bbe29178ae90e776bb9453f86e6d23bd9.tar.gz PeerTube-2a4c0d8bbe29178ae90e776bb9453f86e6d23bd9.tar.zst PeerTube-2a4c0d8bbe29178ae90e776bb9453f86e6d23bd9.zip |
Feature/filter already watched videos (#5739)
* filter already watched videos
* Updated code based on review comments
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/query.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/helpers/query.ts b/server/helpers/query.ts index 1142d02e4..10efae41c 100644 --- a/server/helpers/query.ts +++ b/server/helpers/query.ts | |||
@@ -24,7 +24,8 @@ function pickCommonVideoQuery (query: VideosCommonQueryAfterSanitize) { | |||
24 | 'skipCount', | 24 | 'skipCount', |
25 | 'hasHLSFiles', | 25 | 'hasHLSFiles', |
26 | 'hasWebtorrentFiles', | 26 | 'hasWebtorrentFiles', |
27 | 'search' | 27 | 'search', |
28 | 'excludeAlreadyWatched' | ||
28 | ]) | 29 | ]) |
29 | } | 30 | } |
30 | 31 | ||
@@ -41,7 +42,8 @@ function pickSearchVideoQuery (query: VideosSearchQueryAfterSanitize) { | |||
41 | 'originallyPublishedEndDate', | 42 | 'originallyPublishedEndDate', |
42 | 'durationMin', | 43 | 'durationMin', |
43 | 'durationMax', | 44 | 'durationMax', |
44 | 'uuids' | 45 | 'uuids', |
46 | 'excludeAlreadyWatched' | ||
45 | ]) | 47 | ]) |
46 | } | 48 | } |
47 | } | 49 | } |