Skip to content

Commit

Permalink
Move fedi link in post listing location. Fixes #569 (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Feb 17, 2022
1 parent a406a87 commit 6759374
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/shared/components/post/post-listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
/>
</button>
)}
{!post.local && (
<a className="ml-2" title={i18n.t("link")} href={post.ap_id}>
<Icon icon="fedilink" />
</a>
)}
{post.removed && (
<small className="ml-2 text-muted font-italic">
{i18n.t("removed")}
Expand Down Expand Up @@ -515,9 +510,19 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
}

commentsLine(mobile = false) {
let post = this.props.post_view.post;
return (
<div class="d-flex justify-content-start flex-wrap text-muted font-weight-bold mb-1">
{this.commentsButton}
{!post.local && (
<a
className="btn btn-link btn-animate text-muted py-0"
title={i18n.t("link")}
href={post.ap_id}
>
<Icon icon="fedilink" inline />
</a>
)}
{mobile && !this.props.viewOnly && this.mobileVotes}
{UserService.Instance.myUserInfo &&
!this.props.viewOnly &&
Expand Down

0 comments on commit 6759374

Please sign in to comment.