aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-28 11:37:32 +0100
committerChocobozzz <me@florianbigard.com>2019-11-28 11:37:32 +0100
commitb8f4167fb6fa448125aeecff80b201d74e27fe6a (patch)
tree33179fe38e113b3bd88bae9782f4741754a85159 /client/src/app/+about
parentd275e75453015352d5b9387eaf5078e1ba5e0ea2 (diff)
downloadPeerTube-b8f4167fb6fa448125aeecff80b201d74e27fe6a.tar.gz
PeerTube-b8f4167fb6fa448125aeecff80b201d74e27fe6a.tar.zst
PeerTube-b8f4167fb6fa448125aeecff80b201d74e27fe6a.zip
Only display accepted followers/followings in about page
Diffstat (limited to 'client/src/app/+about')
-rw-r--r--client/src/app/+about/about-follows/about-follows.component.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/+about/about-follows/about-follows.component.ts b/client/src/app/+about/about-follows/about-follows.component.ts
index d60307928..fc265fecb 100644
--- a/client/src/app/+about/about-follows/about-follows.component.ts
+++ b/client/src/app/+about/about-follows/about-follows.component.ts
@@ -74,7 +74,7 @@ export class AboutFollowsComponent implements OnInit {
74 private loadMoreFollowers () { 74 private loadMoreFollowers () {
75 const pagination = this.restService.componentPaginationToRestPagination(this.followersPagination) 75 const pagination = this.restService.componentPaginationToRestPagination(this.followersPagination)
76 76
77 this.followService.getFollowers(pagination, this.sort) 77 this.followService.getFollowers({ pagination: pagination, sort: this.sort, state: 'accepted' })
78 .subscribe( 78 .subscribe(
79 resultList => { 79 resultList => {
80 const newFollowers = resultList.data.map(r => r.follower.host) 80 const newFollowers = resultList.data.map(r => r.follower.host)
@@ -92,7 +92,7 @@ export class AboutFollowsComponent implements OnInit {
92 private loadMoreFollowings () { 92 private loadMoreFollowings () {
93 const pagination = this.restService.componentPaginationToRestPagination(this.followingsPagination) 93 const pagination = this.restService.componentPaginationToRestPagination(this.followingsPagination)
94 94
95 this.followService.getFollowing(pagination, this.sort) 95 this.followService.getFollowing({ pagination, sort: this.sort, state: 'accepted' })
96 .subscribe( 96 .subscribe(
97 resultList => { 97 resultList => {
98 const newFollowings = resultList.data.map(r => r.following.host) 98 const newFollowings = resultList.data.map(r => r.following.host)