mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Merge branch 'main' into language-names
This commit is contained in:
commit
579756d7fb
2 changed files with 12 additions and 7 deletions
|
@ -94,7 +94,7 @@ server.get("/*", async (req, res) => {
|
||||||
if (errCode == "instance_is_private") {
|
if (errCode == "instance_is_private") {
|
||||||
return res.redirect(`/signup`);
|
return res.redirect(`/signup`);
|
||||||
} else {
|
} else {
|
||||||
return res.redirect(`/404?err=${errCode}`);
|
return res.send(`404: ${errCode}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ server.get("/*", async (req, res) => {
|
||||||
`);
|
`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return res.redirect(`/404?err=${err}`);
|
return res.send(`404: ${err}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -445,11 +445,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
{!post.local && (
|
|
||||||
<a className="ml-2" title={i18n.t("link")} href={post.ap_id}>
|
|
||||||
<Icon icon="fedilink" />
|
|
||||||
</a>
|
|
||||||
)}
|
|
||||||
{post.removed && (
|
{post.removed && (
|
||||||
<small className="ml-2 text-muted font-italic">
|
<small className="ml-2 text-muted font-italic">
|
||||||
{i18n.t("removed")}
|
{i18n.t("removed")}
|
||||||
|
@ -515,9 +510,19 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
commentsLine(mobile = false) {
|
commentsLine(mobile = false) {
|
||||||
|
let post = this.props.post_view.post;
|
||||||
return (
|
return (
|
||||||
<div class="d-flex justify-content-start flex-wrap text-muted font-weight-bold mb-1">
|
<div class="d-flex justify-content-start flex-wrap text-muted font-weight-bold mb-1">
|
||||||
{this.commentsButton}
|
{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}
|
{mobile && !this.props.viewOnly && this.mobileVotes}
|
||||||
{UserService.Instance.myUserInfo &&
|
{UserService.Instance.myUserInfo &&
|
||||||
!this.props.viewOnly &&
|
!this.props.viewOnly &&
|
||||||
|
|
Loading…
Reference in a new issue