From 8f38213780c85baa6d0ea98339acc97776b423d8 Mon Sep 17 00:00:00 2001
From: Nutomic <me@nutomic.com>
Date: Mon, 14 Mar 2022 18:33:59 +0000
Subject: [PATCH] Fix comment fedilink (fixes #594) (#595)

---
 src/shared/components/comment/comment-node.tsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

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>
-        )}
+        }
       </>
     );
   }
-- 
2.44.1