Node.js based forum software built for the modern web
fix: cold load redirect should only affect guests
Julian Lamcc606677cb76
diff --git a/src/controllers/accounts/profile.js b/src/controllers/accounts/profile.jsindex 21f6e6a191..93be1d2b4e 100644--- a/src/controllers/accounts/profile.js+++ b/src/controllers/accounts/profile.js@@ -24,7 +24,7 @@ profileController.get = async function (req, res, next) {return next();}- if (meta.config.activitypubEnabled && !res.locals.isAPI && !utils.isNumber(userData.uid)) {+ if (!req.loggedIn && meta.config.activitypubEnabled && !res.locals.isAPI && !utils.isNumber(userData.uid)) {return helpers.redirect(res, `/outgoing?url=${encodeURIComponent(userData.uid)}`);}