From a406a87146d4c032f792fcea152656b76a74a3ce Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 17 Feb 2022 13:08:13 -0500 Subject: [PATCH 1/2] Don't redirect on server error. Fixes #570 (#582) --- src/server/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index 82d0379b..bb7f64d9 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -94,7 +94,7 @@ server.get("/*", async (req, res) => { if (errCode == "instance_is_private") { return res.redirect(`/signup`); } else { - return res.redirect(`/404?err=${errCode}`); + return res.send(`404: ${errCode}`); } } @@ -180,7 +180,7 @@ server.get("/*", async (req, res) => { `); } catch (err) { console.error(err); - return res.redirect(`/404?err=${err}`); + return res.send(`404: ${err}`); } }); From 67593746e06343af4efc03ca94cbebe022656117 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 17 Feb 2022 13:28:43 -0500 Subject: [PATCH 2/2] Move fedi link in post listing location. Fixes #569 (#583) --- src/shared/components/post/post-listing.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 9b07d1c9..36bb9122 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -445,11 +445,6 @@ export class PostListing extends Component { /> )} - {!post.local && ( - - - - )} {post.removed && ( {i18n.t("removed")} @@ -515,9 +510,19 @@ export class PostListing extends Component { } commentsLine(mobile = false) { + let post = this.props.post_view.post; return (
{this.commentsButton} + {!post.local && ( + + + + )} {mobile && !this.props.viewOnly && this.mobileVotes} {UserService.Instance.myUserInfo && !this.props.viewOnly &&