From 26fb3ee660a86d10ba01e4473796d4ac3a5a3d18 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 15 Feb 2024 14:47:49 +0100 Subject: [PATCH] Fix account channels page With high max channels per user peertube config --- .../shared/shared-main/video-channel/video-channel.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/shared/shared-main/video-channel/video-channel.service.ts b/client/src/app/shared/shared-main/video-channel/video-channel.service.ts index 9a42fcc52..68c53741f 100644 --- a/client/src/app/shared/shared-main/video-channel/video-channel.service.ts +++ b/client/src/app/shared/shared-main/video-channel/video-channel.service.ts @@ -57,7 +57,7 @@ export class VideoChannelService { }): Observable> { const { account, componentPagination, withStats = false, sort, search } = options - const defaultCount = this.serverService.getHTMLConfig().videoChannels.maxPerUser + const defaultCount = Math.min(this.serverService.getHTMLConfig().videoChannels.maxPerUser, 100) // 100 is the max count on server side const pagination = componentPagination ? this.restService.componentToRestPagination(componentPagination)