Fix account channels page

With high max channels per user peertube config
This commit is contained in:
Chocobozzz 2024-02-15 14:47:49 +01:00
parent c4b039886e
commit 26fb3ee660
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ export class VideoChannelService {
}): Observable<ResultList<VideoChannel>> {
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)