mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-05 06:00:31 +00:00
Switching back to going directly to link if it has a url.
This commit is contained in:
parent
4b76cccce4
commit
244c1dff0c
@ -71,7 +71,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||
}
|
||||
<div className="ml-4">
|
||||
<div>
|
||||
<h5 className="mb-0 d-inline"><Link className="text-white" to={`/post/${post.id}`}>{post.name}</Link></h5>
|
||||
<h5 className="mb-0 d-inline">
|
||||
{post.url ?
|
||||
<a className="text-white" href={post.url} target="_blank" title={post.url}>{post.name}</a> :
|
||||
<Link className="text-white" to={`/post/${post.id}`} title="Comments">{post.name}</Link>
|
||||
}
|
||||
</h5>
|
||||
{post.url &&
|
||||
<small>
|
||||
<a className="ml-2 text-muted font-italic" href={post.url} target="_blank" title={post.url}>{(new URL(post.url)).hostname}</a>
|
||||
|
Loading…
Reference in New Issue
Block a user