Merge branch 'main' into fedi_link

This commit is contained in:
Dessalines 2022-02-17 13:23:14 -05:00 committed by GitHub
commit 81c775e813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}`);
} }
}); });