mirror of https://github.com/Chocobozzz/PeerTube
Fix account channels page
With high max channels per user peertube configpull/6252/head
parent
c4b039886e
commit
26fb3ee660
|
@ -57,7 +57,7 @@ export class VideoChannelService {
|
||||||
}): Observable<ResultList<VideoChannel>> {
|
}): Observable<ResultList<VideoChannel>> {
|
||||||
const { account, componentPagination, withStats = false, sort, search } = options
|
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
|
const pagination = componentPagination
|
||||||
? this.restService.componentToRestPagination(componentPagination)
|
? this.restService.componentToRestPagination(componentPagination)
|
||||||
|
|
Loading…
Reference in New Issue