ActivityPub-federated video streaming platform using P2P directly in your web browser
Use "match" sort when searching videos
Chocobozzz7cec8fd98cfc
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.tsindex 9bbe15bb4c..48d161eab6 100644--- a/client/src/app/+my-library/my-videos/my-videos.component.ts+++ b/client/src/app/+my-library/my-videos/my-videos.component.ts@@ -309,6 +309,10 @@ export class MyVideosComponent extends RestTable<Video> implements OnInit, OnDes// Override REST table methodonSearch (search: string) {this.search = search+ this.sort = {+ field: 'match',+ order: -1+ }this.onFilter()}diff --git a/server/core/initializers/constants.ts b/server/core/initializers/constants.tsindex 6679a04e1a..65b49a8a2a 100644--- a/server/core/initializers/constants.ts+++ b/server/core/initializers/constants.ts@@ -123,7 +123,8 @@ export const SORTABLE_COLUMNS = {'trending','hot','best',- 'localVideoFilesSize'+ 'localVideoFilesSize',+ 'match'],// Don't forget to update peertube-search-index with the same values