mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
FIX: latest + category not respecting homepage category suppression
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user