FIX: latest + category not respecting homepage category suppression

This commit is contained in:
Sam 2017-03-10 15:17:51 -05:00
parent 19ad1e2c2e
commit f13367cecd
1 changed files with 2 additions and 1 deletions

View File

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