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 /client/src/app/+videos/+video-watch | |
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 'client/src/app/+videos/+video-watch')
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/recommendations/recent-videos-recommendation.service.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/recommendations/recent-videos-recommendation.service.ts b/client/src/app/+videos/+video-watch/shared/recommendations/recent-videos-recommendation.service.ts index 4654da847..b0ae910ac 100644 --- a/client/src/app/+videos/+video-watch/shared/recommendations/recent-videos-recommendation.service.ts +++ b/client/src/app/+videos/+video-watch/shared/recommendations/recent-videos-recommendation.service.ts | |||
@@ -63,6 +63,9 @@ export class RecentVideosRecommendationService implements RecommendationService | |||
63 | searchTarget: 'local', | 63 | searchTarget: 'local', |
64 | nsfw: user.nsfwPolicy | 64 | nsfw: user.nsfwPolicy |
65 | ? this.videos.nsfwPolicyToParam(user.nsfwPolicy) | 65 | ? this.videos.nsfwPolicyToParam(user.nsfwPolicy) |
66 | : undefined, | ||
67 | excludeAlreadyWatched: user.id | ||
68 | ? true | ||
66 | : undefined | 69 | : undefined |
67 | }) | 70 | }) |
68 | } | 71 | } |