Fix comment fedilink (fixes #594) (#595)

This commit is contained in:
Nutomic 2022-03-14 18:33:59 +00:00 committed by GitHub
parent ac2b49f904
commit 8f38213780
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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