]> Untitled Git - lemmy.git/commitdiff
Making links go to post page.
authorDessalines <tyhou13@gmx.com>
Fri, 14 Feb 2020 15:02:37 +0000 (10:02 -0500)
committerDessalines <tyhou13@gmx.com>
Fri, 14 Feb 2020 15:02:37 +0000 (10:02 -0500)
ui/src/components/post-listing.tsx

index 1e7289013594fe8694e06e8989baef2bbb277d10..4dea4d86c70a452921adf866c27d55e9e29d599b 100644 (file)
@@ -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>