diff options
author | Chocobozzz <me@florianbigard.com> | 2022-04-15 15:07:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-04-15 15:07:20 +0200 |
commit | 2b0d17ccf46cfdba4103b7287f0dadf289ad4faf (patch) | |
tree | 3b006eff6a32126d8c260f99f561e2ac1901e4d1 /client/src/app/+videos | |
parent | d09ed46e71b78b4874de4afabefa2f9453c5894d (diff) | |
download | PeerTube-2b0d17ccf46cfdba4103b7287f0dadf289ad4faf.tar.gz PeerTube-2b0d17ccf46cfdba4103b7287f0dadf289ad4faf.tar.zst PeerTube-2b0d17ccf46cfdba4103b7287f0dadf289ad4faf.zip |
Reduce videos sort complexity
Automatically use best sort if user is logged in and chose hot algorithm
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r-- | client/src/app/+videos/video-list/videos-list-common-page.component.ts | 3 |
1 files changed, 1 insertions, 2 deletions
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 | |||
197 | return | 197 | return |
198 | } | 198 | } |
199 | 199 | ||
200 | if ([ 'best', 'hot', 'trending', 'likes' ].includes(sanitizedSort)) { | 200 | if ([ 'hot', 'trending', 'likes' ].includes(sanitizedSort)) { |
201 | this.title = $localize`Trending` | 201 | this.title = $localize`Trending` |
202 | 202 | ||
203 | if (sanitizedSort === 'best') this.titleTooltip = $localize`Videos with the most interactions for recent videos, minus user history` | ||
204 | if (sanitizedSort === 'hot') this.titleTooltip = $localize`Videos with the most interactions for recent videos` | 203 | if (sanitizedSort === 'hot') this.titleTooltip = $localize`Videos with the most interactions for recent videos` |
205 | if (sanitizedSort === 'likes') this.titleTooltip = $localize`Videos that have the most likes` | 204 | if (sanitizedSort === 'likes') this.titleTooltip = $localize`Videos that have the most likes` |
206 | 205 | ||