X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2Fvideo-list%2Fvideo-trending.component.ts;h=8f3d3842b494a31c74e6de679ee8c3159b5fb918;hb=9a629c6efbe39dfac290347670ca41b0d7100f41;hp=3738b95b1f3745802c649a94bc578506811c7e63;hpb=61b909b9bf849516f30dab2bf5977acfbbddc5c6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/video-list/video-trending.component.ts b/client/src/app/videos/video-list/video-trending.component.ts index 3738b95b1..8f3d3842b 100644 --- a/client/src/app/videos/video-list/video-trending.component.ts +++ b/client/src/app/videos/video-list/video-trending.component.ts @@ -18,7 +18,7 @@ import { ScreenService } from '@app/shared/misc/screen.service' export class VideoTrendingComponent extends AbstractVideoList implements OnInit, OnDestroy { titlePage: string currentRoute = '/videos/trending' - defaultSort: VideoSortField = '-views' + defaultSort: VideoSortField = '-trending' constructor ( protected router: Router, @@ -47,10 +47,10 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, getVideosObservable (page: number) { const newPagination = immutableAssign(this.pagination, { currentPage: page }) - return this.videoService.getVideos(newPagination, this.sort, undefined, this.category) + return this.videoService.getVideos(newPagination, this.sort, undefined, this.categoryOneOf) } generateSyndicationList () { - this.syndicationItems = this.videoService.getVideoFeedUrls(this.sort, undefined, this.category) + this.syndicationItems = this.videoService.getVideoFeedUrls(this.sort, undefined, this.categoryOneOf) } }