From f13367cecda6ef329f42b3980dcd2178a43dbe1d Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 10 Mar 2017 15:17:51 -0500 Subject: [PATCH] FIX: latest + category not respecting homepage category suppression --- app/controllers/categories_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb index d11a8ad57bb..221375fbbc1 100644 --- a/app/controllers/categories_controller.rb +++ b/app/controllers/categories_controller.rb @@ -57,7 +57,8 @@ class CategoriesController < ApplicationController topic_options = { per_page: SiteSetting.categories_topics, - no_definitions: true + no_definitions: true, + exclude_category_ids: Category.where(suppress_from_homepage: true).pluck(:id) } result = CategoryAndTopicLists.new