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