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/%24%7B%60data:application/static/%7B%60https:/README.es.md?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}