mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix watched categories
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
"account/posts": "Posts made by %1",
|
"account/posts": "Posts made by %1",
|
||||||
"account/topics": "Topics created by %1",
|
"account/topics": "Topics created by %1",
|
||||||
"account/groups": "%1's Groups",
|
"account/groups": "%1's Groups",
|
||||||
|
"account/watched_categories": "%1's Watched Categories",
|
||||||
"account/bookmarks": "%1's Bookmarked Posts",
|
"account/bookmarks": "%1's Bookmarked Posts",
|
||||||
"account/settings": "User Settings",
|
"account/settings": "User Settings",
|
||||||
"account/watched": "Topics watched by %1",
|
"account/watched": "Topics watched by %1",
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
"profile_views": "Profile views",
|
"profile_views": "Profile views",
|
||||||
"reputation": "Reputation",
|
"reputation": "Reputation",
|
||||||
"bookmarks":"Bookmarks",
|
"bookmarks":"Bookmarks",
|
||||||
|
"watched_categories": "Watched categories",
|
||||||
"watched": "Watched",
|
"watched": "Watched",
|
||||||
"ignored": "Ignored",
|
"ignored": "Ignored",
|
||||||
"followers": "Followers",
|
"followers": "Followers",
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ categoriesController.get = function (req, res, callback) {
|
|||||||
flattenArray(results);
|
flattenArray(results);
|
||||||
userData.categories = results.all;
|
userData.categories = results.all;
|
||||||
|
|
||||||
userData.title = '[[pages:account/watched_categories]]';
|
userData.title = '[[pages:account/watched_categories, ' + userData.username + ']]';
|
||||||
res.render('account/categories', userData);
|
res.render('account/categories', userData);
|
||||||
},
|
},
|
||||||
], callback);
|
], callback);
|
||||||
@@ -49,7 +49,7 @@ function flattenArray(results) {
|
|||||||
var category = results.all[i];
|
var category = results.all[i];
|
||||||
|
|
||||||
category.isIgnored = false;
|
category.isIgnored = false;
|
||||||
if (results.ignored.includes(category.cid)) {
|
if (results.ignored.includes(String(category.cid))) {
|
||||||
category.isIgnored = true;
|
category.isIgnored = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user