FIX: uncategorized is showing up in title tag on topics

This commit is contained in:
Arpit Jalan 2015-02-09 10:50:39 +05:30
parent 4a5d79ad89
commit e87ff31d4c

View file

@ -20,7 +20,8 @@ var TopicRoute = Discourse.Route.extend(ShowFooter, {
var result = model.get('title'), var result = model.get('title'),
cat = model.get('category'); cat = model.get('category');
if (cat && !cat.get('isUncategorized')) { // Only display uncategorized in the title tag if it was renamed
if (cat && !(cat.get('isUncategorizedCategory') && cat.get('name').toLowerCase() == "uncategorized")) {
var catName = cat.get('name'), var catName = cat.get('name'),
parentCategory = cat.get('parentCategory'); parentCategory = cat.get('parentCategory');