mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
fix watched categories
This commit is contained in:
@@ -33,7 +33,7 @@ categoriesController.get = function (req, res, callback) {
|
||||
flattenArray(results);
|
||||
userData.categories = results.all;
|
||||
|
||||
userData.title = '[[pages:account/watched_categories]]';
|
||||
userData.title = '[[pages:account/watched_categories, ' + userData.username + ']]';
|
||||
res.render('account/categories', userData);
|
||||
},
|
||||
], callback);
|
||||
@@ -49,7 +49,7 @@ function flattenArray(results) {
|
||||
var category = results.all[i];
|
||||
|
||||
category.isIgnored = false;
|
||||
if (results.ignored.includes(category.cid)) {
|
||||
if (results.ignored.includes(String(category.cid))) {
|
||||
category.isIgnored = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user