From 2b0d17ccf46cfdba4103b7287f0dadf289ad4faf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Apr 2022 15:07:20 +0200 Subject: Reduce videos sort complexity Automatically use best sort if user is logged in and chose hot algorithm --- client/src/app/+videos/video-list/videos-list-common-page.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/src/app/+videos/video-list') diff --git a/client/src/app/+videos/video-list/videos-list-common-page.component.ts b/client/src/app/+videos/video-list/videos-list-common-page.component.ts index d03b09610..32737ef1c 100644 --- a/client/src/app/+videos/video-list/videos-list-common-page.component.ts +++ b/client/src/app/+videos/video-list/videos-list-common-page.component.ts @@ -197,10 +197,9 @@ export class VideosListCommonPageComponent implements OnInit, OnDestroy, Disable return } - if ([ 'best', 'hot', 'trending', 'likes' ].includes(sanitizedSort)) { + if ([ 'hot', 'trending', 'likes' ].includes(sanitizedSort)) { this.title = $localize`Trending` - if (sanitizedSort === 'best') this.titleTooltip = $localize`Videos with the most interactions for recent videos, minus user history` if (sanitizedSort === 'hot') this.titleTooltip = $localize`Videos with the most interactions for recent videos` if (sanitizedSort === 'likes') this.titleTooltip = $localize`Videos that have the most likes` -- cgit v1.2.3