From: Nutomic <me@nutomic.com> Date: Mon, 14 Mar 2022 18:33:59 +0000 (+0000) Subject: Fix comment fedilink (fixes #594) (#595) X-Git-Url: http://these/git/%22https:/join-lemmy.org/static/sneer-club-logo.svg?a=commitdiff_plain;h=8f38213780c85baa6d0ea98339acc97776b423d8;p=lemmy-ui.git Fix comment fedilink (fixes #594) (#595) --- diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index d9702ba..d2a36ac 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -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> - )} + } </> ); }