mirror of https://github.com/LemmyNet/lemmy.git
Making links go to post page.
parent
a27badefba
commit
177c462b40
|
@ -171,24 +171,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
<div className="post-title text-wrap-truncate">
|
<div className="post-title text-wrap-truncate">
|
||||||
<h5 className="mb-0 d-inline">
|
<h5 className="mb-0 d-inline">
|
||||||
{post.url ? (
|
<Link
|
||||||
<a
|
className="text-body"
|
||||||
className="text-body"
|
to={`/post/${post.id}`}
|
||||||
href={post.url}
|
title={i18n.t('comments')}
|
||||||
target="_blank"
|
>
|
||||||
title={post.url}
|
{post.name}
|
||||||
>
|
</Link>
|
||||||
{post.name}
|
|
||||||
</a>
|
|
||||||
) : (
|
|
||||||
<Link
|
|
||||||
className="text-body"
|
|
||||||
to={`/post/${post.id}`}
|
|
||||||
title={i18n.t('comments')}
|
|
||||||
>
|
|
||||||
{post.name}
|
|
||||||
</Link>
|
|
||||||
)}
|
|
||||||
</h5>
|
</h5>
|
||||||
{post.url && (
|
{post.url && (
|
||||||
<small>
|
<small>
|
||||||
|
|
Loading…
Reference in New Issue