Skip to content

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

Fix account playlists fetch

Chocobozzzd8de2f3ff9a2
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts
index 68d9e37bb7..dbc45dd44f 100644
--- a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts
+++ b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts
@@ -112,7 +112,11 @@ export class VideoPlaylistService {
let params = new HttpParams()
- const restPagination = options.restPagination ?? this.restService.componentToRestPagination(options.componentPagination)
+ let restPagination = options.restPagination
+ if (!restPagination && options.componentPagination) {
+ restPagination = this.restService.componentToRestPagination(options.componentPagination)
+ }
+
params = this.restService.addRestGetParams(params, restPagination, sort)
if (search) params = this.restService.addObjectParams(params, { search })