aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-08 14:40:08 +0100
committerChocobozzz <me@florianbigard.com>2020-01-08 14:40:08 +0100
commit440d39c52d4efb878b6a2e21584d6b8f52072f27 (patch)
tree19ffd2dd545e125daf89c230e33d15f7827d10f7 /client/src/app/videos/video-list
parentfe98765624cdd6695739bda719fcb726b71c2b2a (diff)
downloadPeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.tar.gz
PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.tar.zst
PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.zip
Skip videos count on client if we don't use it
Diffstat (limited to 'client/src/app/videos/video-list')
-rw-r--r--client/src/app/videos/video-list/video-local.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-most-liked.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-recently-added.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-trending.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-user-subscriptions.component.ts3
5 files changed, 10 insertions, 5 deletions
diff --git a/client/src/app/videos/video-list/video-local.component.ts b/client/src/app/videos/video-list/video-local.component.ts
index b96e46e6a..59f65f95c 100644
--- a/client/src/app/videos/video-list/video-local.component.ts
+++ b/client/src/app/videos/video-list/video-local.component.ts
@@ -62,7 +62,8 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit, On
62 sort: this.sort, 62 sort: this.sort,
63 filter: this.filter, 63 filter: this.filter,
64 categoryOneOf: this.categoryOneOf, 64 categoryOneOf: this.categoryOneOf,
65 languageOneOf: this.languageOneOf 65 languageOneOf: this.languageOneOf,
66 skipCount: true
66 } 67 }
67 68
68 return this.hooks.wrapObsFun( 69 return this.hooks.wrapObsFun(
diff --git a/client/src/app/videos/video-list/video-most-liked.component.ts b/client/src/app/videos/video-list/video-most-liked.component.ts
index f94a7da04..6ff7a1e0e 100644
--- a/client/src/app/videos/video-list/video-most-liked.component.ts
+++ b/client/src/app/videos/video-list/video-most-liked.component.ts
@@ -50,7 +50,8 @@ export class VideoMostLikedComponent extends AbstractVideoList implements OnInit
50 videoPagination: newPagination, 50 videoPagination: newPagination,
51 sort: this.sort, 51 sort: this.sort,
52 categoryOneOf: this.categoryOneOf, 52 categoryOneOf: this.categoryOneOf,
53 languageOneOf: this.languageOneOf 53 languageOneOf: this.languageOneOf,
54 skipCount: true
54 } 55 }
55 56
56 return this.hooks.wrapObsFun( 57 return this.hooks.wrapObsFun(
diff --git a/client/src/app/videos/video-list/video-recently-added.component.ts b/client/src/app/videos/video-list/video-recently-added.component.ts
index 5c50fd396..7568f4536 100644
--- a/client/src/app/videos/video-list/video-recently-added.component.ts
+++ b/client/src/app/videos/video-list/video-recently-added.component.ts
@@ -54,7 +54,8 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On
54 videoPagination: newPagination, 54 videoPagination: newPagination,
55 sort: this.sort, 55 sort: this.sort,
56 categoryOneOf: this.categoryOneOf, 56 categoryOneOf: this.categoryOneOf,
57 languageOneOf: this.languageOneOf 57 languageOneOf: this.languageOneOf,
58 skipCount: true
58 } 59 }
59 60
60 return this.hooks.wrapObsFun( 61 return this.hooks.wrapObsFun(
diff --git a/client/src/app/videos/video-list/video-trending.component.ts b/client/src/app/videos/video-list/video-trending.component.ts
index bc88679fa..e29830b5b 100644
--- a/client/src/app/videos/video-list/video-trending.component.ts
+++ b/client/src/app/videos/video-list/video-trending.component.ts
@@ -67,7 +67,8 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit,
67 videoPagination: newPagination, 67 videoPagination: newPagination,
68 sort: this.sort, 68 sort: this.sort,
69 categoryOneOf: this.categoryOneOf, 69 categoryOneOf: this.categoryOneOf,
70 languageOneOf: this.languageOneOf 70 languageOneOf: this.languageOneOf,
71 skipCount: true
71 } 72 }
72 73
73 return this.hooks.wrapObsFun( 74 return this.hooks.wrapObsFun(
diff --git a/client/src/app/videos/video-list/video-user-subscriptions.component.ts b/client/src/app/videos/video-list/video-user-subscriptions.component.ts
index 0cd67db29..cf0b15054 100644
--- a/client/src/app/videos/video-list/video-user-subscriptions.component.ts
+++ b/client/src/app/videos/video-list/video-user-subscriptions.component.ts
@@ -55,7 +55,8 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement
55 const newPagination = immutableAssign(this.pagination, { currentPage: page }) 55 const newPagination = immutableAssign(this.pagination, { currentPage: page })
56 const params = { 56 const params = {
57 videoPagination: newPagination, 57 videoPagination: newPagination,
58 sort: this.sort 58 sort: this.sort,
59 skipCount: true
59 } 60 }
60 61
61 return this.hooks.wrapObsFun( 62 return this.hooks.wrapObsFun(