Browse Source

misc: Use different redirect;

develop
Dale 3 months ago
parent
commit
fe0442cda0
Signed by: Deiru GPG Key ID: AA250C0277B927E1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/domains/landing/index.tsx

+ 2
- 2
src/domains/landing/index.tsx View File

@@ -14,6 +14,7 @@ const router = Router();
router.get("/", (req, res) => {
getFromCache().then(([mastodonStatus, mumbleStatus, XMPPStatus]) => {
const loggedIn = !!req.cookies._session_id;
console.log(req.cookies, loggedIn);
const statusPage = (
<Landing
mastodon={mastodonStatus}
@@ -27,8 +28,7 @@ router.get("/", (req, res) => {
${renderToString(statusPage)}
`;
if (loggedIn) {
res.redirect(307, "/web/timelines");
res.end();
res.redirect("/web/timelines");
} else {
res.status(200).send(page);
}


Loading…
Cancel
Save