mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
use the real count
This commit is contained in:
@@ -60,7 +60,7 @@ searchController.search = function (req, res, next) {
|
||||
|
||||
var searchData = results.search;
|
||||
searchData.categories = categoriesData;
|
||||
searchData.categoriesCount = results.categories.length;
|
||||
searchData.categoriesCount = categoriesData.length;
|
||||
searchData.pagination = pagination.create(page, searchData.pageCount, req.query);
|
||||
searchData.showAsPosts = !req.query.showAs || req.query.showAs === 'posts';
|
||||
searchData.showAsTopics = req.query.showAs === 'topics';
|
||||
|
||||
Reference in New Issue
Block a user