diff options
author | Jorropo <jorropo.pgm@gmail.com> | 2018-09-04 11:01:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-04 11:01:54 +0200 |
commit | b0c36821d1dcf362f14c99ca3741e7d03aea0a04 (patch) | |
tree | ba2e84ae6f1559f9e3027feab0422e2bf5ad04a8 /client/src/app/videos/recommendations/recommendations.service.ts | |
parent | 5cf84858d49f4231cc4efec5e3132f17f65f6cf6 (diff) | |
download | PeerTube-b0c36821d1dcf362f14c99ca3741e7d03aea0a04.tar.gz PeerTube-b0c36821d1dcf362f14c99ca3741e7d03aea0a04.tar.zst PeerTube-b0c36821d1dcf362f14c99ca3741e7d03aea0a04.zip |
Add video recomandation by tags (#1001)
* Recommendation by tags (thx bradsk88)
Thx bradsk88 for the help.
* Prefer jest-preset-angular to skip need for babel config
* Fix jest
Diffstat (limited to 'client/src/app/videos/recommendations/recommendations.service.ts')
-rw-r--r-- | client/src/app/videos/recommendations/recommendations.service.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/videos/recommendations/recommendations.service.ts b/client/src/app/videos/recommendations/recommendations.service.ts index 44cbda9b7..114a808b5 100644 --- a/client/src/app/videos/recommendations/recommendations.service.ts +++ b/client/src/app/videos/recommendations/recommendations.service.ts | |||
@@ -1,8 +1,9 @@ | |||
1 | import { Video } from '@app/shared/video/video.model' | 1 | import { Video } from '@app/shared/video/video.model' |
2 | import { RecommendationInfo } from '@app/shared/video/recommendation-info.model' | ||
2 | import { Observable } from 'rxjs' | 3 | import { Observable } from 'rxjs' |
3 | 4 | ||
4 | export type UUID = string | 5 | export type UUID = string |
5 | 6 | ||
6 | export interface RecommendationService { | 7 | export interface RecommendationService { |
7 | getRecommendations (uuid: UUID): Observable<Video[]> | 8 | getRecommendations (recommendation: RecommendationInfo): Observable<Video[]> |
8 | } | 9 | } |