diff options
author | Chocobozzz <me@florianbigard.com> | 2023-04-14 09:42:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-04-14 09:42:50 +0200 |
commit | d15531fb3567f2f27229d3086ffd48069ca73315 (patch) | |
tree | 48c29a05fd6f2d3b293d408778e7de9292e04732 /client/src/app/+about/about-follows/about-follows.component.ts | |
parent | 848347f193ca43f098e77b321f6555bd4a143e62 (diff) | |
download | PeerTube-d15531fb3567f2f27229d3086ffd48069ca73315.tar.gz PeerTube-d15531fb3567f2f27229d3086ffd48069ca73315.tar.zst PeerTube-d15531fb3567f2f27229d3086ffd48069ca73315.zip |
Fix follow links
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 | } |