diff options
Diffstat (limited to 'ui/src/components/user-listing.tsx')
-rw-r--r-- | ui/src/components/user-listing.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/src/components/user-listing.tsx b/ui/src/components/user-listing.tsx index 356c4d48..903aa1a7 100644 --- a/ui/src/components/user-listing.tsx +++ b/ui/src/components/user-listing.tsx @@ -13,6 +13,7 @@ interface UserOther { interface UserListingProps { user: UserView | UserOther; + realLink?: boolean; } export class UserListing extends Component<UserListingProps, any> { @@ -29,8 +30,8 @@ export class UserListing extends Component<UserListingProps, any> { name_ = user.name; link = `/u/${user.name}`; } else { - name_ = `${hostname(user.actor_id)}/${user.name}`; - link = `/user/${user.id}`; + name_ = `${user.name}@${hostname(user.actor_id)}`; + link = !this.props.realLink ? `/user/${user.id}` : user.actor_id; } return ( |