fix: #14043, cold-load redirect should only affect guests

This commit is contained in:
Julian Lam
2026-03-09 10:36:15 -04:00
parent ab3c9fae9a
commit 5a7316b1b2

View File

@@ -27,7 +27,7 @@ postsController.redirectToPost = async function (req, res, next) {
// }
// }
if (meta.config.activitypubEnabled && !res.locals.isAPI && !utils.isNumber(pid)) {
if (!req.loggedIn && meta.config.activitypubEnabled && !res.locals.isAPI && !utils.isNumber(pid)) {
return helpers.redirect(res, `/outgoing?url=${encodeURIComponent(pid)}`);
}