X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2Fvideo-list%2Fvideo-recently-added.component.ts;h=19522e6b4d5cdb51575882e0a41cf34c8ed7c960;hb=3caf77d3b11f2dbc12e52d665183d36604c1dab9;hp=f54bade98711fa27462c8213e8463cea1fedb7e1;hpb=bbe078ba55be635b5fc92f8f6286c45792b9e7e5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/video-list/video-recently-added.component.ts b/client/src/app/videos/video-list/video-recently-added.component.ts index f54bade98..19522e6b4 100644 --- a/client/src/app/videos/video-list/video-recently-added.component.ts +++ b/client/src/app/videos/video-list/video-recently-added.component.ts @@ -19,6 +19,8 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On sort: VideoSortField = '-publishedAt' groupByDate = true + useUserVideoLanguagePreferences = true + constructor ( protected i18n: I18n, protected route: ActivatedRoute, @@ -47,7 +49,13 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On getVideosObservable (page: number) { const newPagination = immutableAssign(this.pagination, { currentPage: page }) - return this.videoService.getVideos(newPagination, this.sort, undefined, this.categoryOneOf) + return this.videoService.getVideos({ + videoPagination: newPagination, + sort: this.sort, + filter: undefined, + categoryOneOf: this.categoryOneOf, + languageOneOf: this.languageOneOf + }) } generateSyndicationList () {