From 244c1dff0c5fb342cca0a576993b80751f2ff99e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 25 Apr 2019 15:00:05 -0700 Subject: [PATCH] Switching back to going directly to link if it has a url. --- ui/src/components/post-listing.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 198c8e8e..6790343b 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -71,7 +71,12 @@ export class PostListing extends Component { }
-
{post.name}
+
+ {post.url ? + {post.name} : + {post.name} + } +
{post.url && {(new URL(post.url)).hostname}