FIX: latest + category not respecting homepage category suppression
This commit is contained in:
parent
19ad1e2c2e
commit
f13367cecd
|
@ -57,7 +57,8 @@ class CategoriesController < ApplicationController
|
||||||
|
|
||||||
topic_options = {
|
topic_options = {
|
||||||
per_page: SiteSetting.categories_topics,
|
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
|
result = CategoryAndTopicLists.new
|
||||||
|
|
Loading…
Reference in New Issue