From fe03effe7d25797360e0da56a2157a506287acb2 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 28 Apr 2020 17:27:06 -0400 Subject: [PATCH] Revert "fix: crash when res.locals.linkTags is undefined" This reverts commit 7cab2b0fea4cd66a0dd34073478d3d1ae350f63a. --- src/controllers/topics.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index ac8868e445..71c1f03ae4 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -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); });