From 89bb346e639b45c2d997e9e638aed42b1dd96c87 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} -- 2.44.1