mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-24 16:29:51 +01:00
fix: restrict topic backfill to logged-in users when browsing to a category
This commit is contained in:
@@ -151,7 +151,7 @@ topicsController.get = async function getTopic(req, res, next) {
|
||||
res.set('Link', `<${href}>; rel="alternate"; type="application/activity+json"`);
|
||||
}
|
||||
|
||||
if (!utils.isNumber(topicData.mainPid)) {
|
||||
if (req.uid > 0 && !utils.isNumber(topicData.mainPid)) {
|
||||
// not awaited on purpose so topic loading is not blocked
|
||||
activitypub.notes.backfill(topicData.mainPid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user