mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 04:06:17 +02:00
fix: #14043, cold-load redirect should only affect guests
This commit is contained in:
@@ -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)}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user