diff options
Diffstat (limited to 'client/src/app/+about/about-follows/about-follows.component.ts')
-rw-r--r-- | client/src/app/+about/about-follows/about-follows.component.ts | 15 |
1 files changed, 9 insertions, 6 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 35d810388..e1df8b813 100644 --- a/client/src/app/+about/about-follows/about-follows.component.ts +++ b/client/src/app/+about/about-follows/about-follows.component.ts | |||
@@ -13,8 +13,8 @@ import { Actor } from '@shared/models/actors' | |||
13 | export class AboutFollowsComponent implements OnInit { | 13 | export class AboutFollowsComponent implements OnInit { |
14 | instanceName: string | 14 | instanceName: string |
15 | 15 | ||
16 | followers: string[] = [] | 16 | followers: { name: string, url: string }[] = [] |
17 | followings: string[] = [] | 17 | followings: { name: string, url: string }[] = [] |
18 | 18 | ||
19 | loadedAllFollowers = false | 19 | loadedAllFollowers = false |
20 | loadedAllFollowings = false | 20 | loadedAllFollowings = false |
@@ -130,10 +130,13 @@ export class AboutFollowsComponent implements OnInit { | |||
130 | } | 130 | } |
131 | 131 | ||
132 | private formatFollow (actor: Actor) { | 132 | private formatFollow (actor: Actor) { |
133 | // Instance follow, only display host | 133 | return { |
134 | if (actor.name === 'peertube') return actor.host | 134 | // Instance follow, only display host |
135 | name: actor.name === 'peertube' | ||
136 | ? actor.host | ||
137 | : actor.name + '@' + actor.host, | ||
135 | 138 | ||
136 | return actor.name + '@' + actor.host | 139 | url: actor.url |
140 | } | ||
137 | } | 141 | } |
138 | |||
139 | } | 142 | } |