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" /> <Icon icon="link" classes="icon-inline" />
</Link> </Link>
{!cv.comment.local && ( <a
<a className={classnames} title={title} href={cv.comment.ap_id}> className={classnames}
title={I18NextService.i18n.t("link")}
href={cv.comment.ap_id}
>
<Icon icon="fedilink" classes="icon-inline" /> <Icon icon="fedilink" classes="icon-inline" />
</a> </a>
)}
</> </>
); );
} }

View file

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