summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post-listing.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-14 10:02:37 -0500
committerDessalines <tyhou13@gmx.com>2020-02-14 10:02:37 -0500
commit177c462b40edd2e9eb7da0d1052f4a82f492dfce (patch)
tree0f0b532a26aa14eca99a164ef83b1e602616fa91 /ui/src/components/post-listing.tsx
parenta27badefba3bdc46bd322358da5b2fd001b9e5cc (diff)
Making links go to post page.
Diffstat (limited to 'ui/src/components/post-listing.tsx')
-rw-r--r--ui/src/components/post-listing.tsx25
1 files changed, 7 insertions, 18 deletions
diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx
index 1e728901..4dea4d86 100644
--- a/ui/src/components/post-listing.tsx
+++ b/ui/src/components/post-listing.tsx
@@ -171,24 +171,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<div className="ml-4">
<div className="post-title text-wrap-truncate">
<h5 className="mb-0 d-inline">
- {post.url ? (
- <a
- className="text-body"
- href={post.url}
- target="_blank"
- title={post.url}
- >
- {post.name}
- </a>
- ) : (
- <Link
- className="text-body"
- to={`/post/${post.id}`}
- title={i18n.t('comments')}
- >
- {post.name}
- </Link>
- )}
+ <Link
+ className="text-body"
+ to={`/post/${post.id}`}
+ title={i18n.t('comments')}
+ >
+ {post.name}
+ </Link>
</h5>
{post.url && (
<small>