fix watched categories

v1.18.x
Baris Usakli 6 years ago
parent 51783f6779
commit 71905bb2c6

@ -51,6 +51,7 @@
"account/posts": "Posts made by %1",
"account/topics": "Topics created by %1",
"account/groups": "%1's Groups",
"account/watched_categories": "%1's Watched Categories",
"account/bookmarks": "%1's Bookmarked Posts",
"account/settings": "User Settings",
"account/watched": "Topics watched by %1",

@ -27,6 +27,7 @@
"profile_views": "Profile views",
"reputation": "Reputation",
"bookmarks":"Bookmarks",
"watched_categories": "Watched categories",
"watched": "Watched",
"ignored": "Ignored",
"followers": "Followers",

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

Loading…
Cancel
Save