mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
Revert "fix: crash when res.locals.linkTags is undefined"
This reverts commit 7cab2b0fea.
This commit is contained in:
@@ -92,7 +92,6 @@ topicsController.get = async function getTopic(req, res, callback) {
|
||||
topicData.pagination = pagination.create(currentPage, pageCount, req.query);
|
||||
topicData.pagination.rel.forEach(function (rel) {
|
||||
rel.href = nconf.get('url') + '/topic/' + topicData.slug + rel.href;
|
||||
res.locals.linkTags = res.locals.linkTags || [];
|
||||
res.locals.linkTags.push(rel);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user