Node.js based forum software built for the modern web
fix: set topic_count on recent/popular/topic/unread so topic tools is visible
Barış Soner Uşaklıed642b96f09e
diff --git a/src/controllers/recent.js b/src/controllers/recent.jsindex 73d5348c0d..bc3f4126d7 100644--- a/src/controllers/recent.js+++ b/src/controllers/recent.js@@ -91,7 +91,7 @@ recentController.getData = async function (req, url, sort, selectedTerm = 'alltidata.selectedFilter = data.filters.find(filter => filter && filter.selected);data.terms = helpers.buildTerms(baseUrl, term, query);data.selectedTerm = data.terms.find(term => term && term.selected);-+ data.topic_count = data.topicCount;const pageCount = Math.max(1, Math.ceil(data.topicCount / settings.topicsPerPage));data.pagination = pagination.create(page, pageCount, req.query);helpers.addLinkTags({diff --git a/src/controllers/unread.js b/src/controllers/unread.jsindex 871f3252c0..e55e0f5e96 100644--- a/src/controllers/unread.js+++ b/src/controllers/unread.js@@ -48,7 +48,7 @@ unreadController.get = async function (req, res) {data.title = '[[pages:unread]]';data.breadcrumbs = helpers.buildBreadcrumbs([{ text: '[[unread:title]]' }]);}-+ data.topic_count = data.topicCount;data.pageCount = Math.max(1, Math.ceil(data.topicCount / userSettings.topicsPerPage));data.pagination = pagination.create(page, data.pageCount, req.query);helpers.addLinkTags({