Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix videos list default scope

Chocobozzz098329841c24
diff --git a/client/src/app/+video-list/videos-list-all.component.ts b/client/src/app/+video-list/videos-list-all.component.ts
index 914a9a168b..595a97e9c2 100644
--- a/client/src/app/+video-list/videos-list-all.component.ts
+++ b/client/src/app/+video-list/videos-list-all.component.ts
@@ -43,9 +43,8 @@ export class VideosListAllComponent implements OnInit, OnDestroy, DisableForReus
ngOnInit () {
this.serverConfig = this.serverService.getHTMLConfig()
- const queryParams = this.route.snapshot.queryParams
- this.defaultSort = queryParams.sort || this.serverConfig.client.browseVideos.defaultSort
- this.defaultScope = queryParams.scope || this.serverConfig.client.browseVideos.defaultScope
+ this.defaultSort = this.serverConfig.client.browseVideos.defaultSort as VideoSortField
+ this.defaultScope = this.serverConfig.client.browseVideos.defaultScope as VideoFilterScope
this.routeSub = this.route.params.subscribe(() => this.update())
}