mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix watched categories
This commit is contained in:
		| @@ -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; | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user