mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +00:00
Fixing off-site links for community and user. Fixes #78
This commit is contained in:
parent
c98a108ee3
commit
e23916208e
2 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,7 @@ export class CommunityLink extends Component<CommunityLinkProps, any> {
|
|||
title={apubName}
|
||||
className={`${this.props.muted ? 'text-muted' : ''}`}
|
||||
to={link}
|
||||
target={!local ? '_blank' : ''}
|
||||
>
|
||||
{!this.props.hideAvatar && community.icon && showAvatars() && (
|
||||
<PictrsImage src={community.icon} icon />
|
||||
|
|
|
@ -53,6 +53,7 @@ export class UserListing extends Component<UserListingProps, any> {
|
|||
title={apubName}
|
||||
className={this.props.muted ? 'text-muted' : 'text-info'}
|
||||
to={link}
|
||||
target={!local ? '_blank' : ''}
|
||||
>
|
||||
{!this.props.hideAvatar && user.avatar && showAvatars() && (
|
||||
<PictrsImage src={user.avatar} icon />
|
||||
|
|
Loading…
Reference in a new issue