From 32efe1198615e2fe7963869203e5e556a1a90633 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 14 May 2015 22:41:37 +0930 Subject: [PATCH] Use new discussion request include API --- extensions/tags/js/bootstrap.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/tags/js/bootstrap.js b/extensions/tags/js/bootstrap.js index b9f12782e..c930a6528 100644 --- a/extensions/tags/js/bootstrap.js +++ b/extensions/tags/js/bootstrap.js @@ -25,7 +25,6 @@ import categoryLabel from 'categories/helpers/category-label'; import categoryIcon from 'categories/helpers/category-icon'; app.initializers.add('categories', function() { - // Register routes. app.routes['categories'] = ['/categories', CategoriesPage.component()]; app.routes['category'] = ['/c/:categories', IndexPage.component()]; @@ -117,7 +116,7 @@ app.initializers.add('categories', function() { // Include a discussion's category when fetching it. extend(DiscussionPage.prototype, 'params', function(params) { - params.include += ',category'; + params.include.push('category'); }); // Restyle a discussion's hero to use its category color.