Revert "fix: crash when res.locals.linkTags is undefined"

This reverts commit 7cab2b0fea.
v1.18.x
psychobunny 5 years ago
parent 7cab2b0fea
commit fe03effe7d

@ -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);
});

Loading…
Cancel
Save