From: Dessalines Date: Thu, 25 Apr 2019 22:00:05 +0000 (-0700) Subject: Switching back to going directly to link if it has a url. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/static/%7Bthis.props.icon%7D?a=commitdiff_plain;h=89bb346e639b45c2d997e9e638aed42b1dd96c87;p=lemmy.git Switching back to going directly to link if it has a url. --- 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}