]> Untitled Git - lemmy-ui.git/commitdiff
Fix comment fedilink (fixes #594) (#595)
authorNutomic <me@nutomic.com>
Mon, 14 Mar 2022 18:33:59 +0000 (18:33 +0000)
committerGitHub <noreply@github.com>
Mon, 14 Mar 2022 18:33:59 +0000 (18:33 +0000)
src/shared/components/comment/comment-node.tsx

index d9702babdbc7cde5ecf3afa21a7006b53fba94a8..d2a36acc79eda98a04968cd55e7761247d30117b 100644 (file)
@@ -867,12 +867,11 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
         >
           <Icon icon="link" classes="icon-inline" />
         </Link>
-        {/* TODO comment ap_ids are currently broken anyway, so use post.ap_id, and wait until comment tree / endpoint refactor */}
-        {!cv.comment.local && (
-          <a className={classnames} title={title} href={cv.post.ap_id}>
+        {
+          <a className={classnames} title={title} href={cv.comment.ap_id}>
             <Icon icon="fedilink" classes="icon-inline" />
           </a>
-        )}
+        }
       </>
     );
   }