always show fedilinks (issue #2160) (#2344)

* always show fedilinks (issue #2160)

* fix comment fedilinks title text

* fix comment links title text

* remove unused local variable

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
This commit is contained in:
Die4Ever 2024-02-16 09:20:49 -06:00 committed by GitHub
parent 1ff4acc049
commit 77cd46b35b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 15 deletions

View file

@ -507,11 +507,13 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
>
<Icon icon="link" classes="icon-inline" />
</Link>
{!cv.comment.local && (
<a className={classnames} title={title} href={cv.comment.ap_id}>
<Icon icon="fedilink" classes="icon-inline" />
</a>
)}
<a
className={classnames}
title={I18NextService.i18n.t("link")}
href={cv.comment.ap_id}
>
<Icon icon="fedilink" classes="icon-inline" />
</a>
</>
);
}

View file

@ -553,7 +553,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
enableDownvotes,
} = this.props;
const {
post: { local, ap_id, id, body },
post: { ap_id, id, body },
counts,
my_vote,
} = this.postView;
@ -570,15 +570,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<Icon icon="share" inline />
</button>
)}
{!local && (
<a
className="btn btn-sm btn-link btn-animate text-muted py-0"
title={I18NextService.i18n.t("link")}
href={ap_id}
>
<Icon icon="fedilink" inline />
</a>
)}
<a
className="btn btn-sm btn-link btn-animate text-muted py-0"
title={I18NextService.i18n.t("link")}
href={ap_id}
>
<Icon icon="fedilink" inline />
</a>
{mobile && !viewOnly && (
<VoteButtonsCompact
voteContentType={VoteContentType.Post}