mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FEATURE: remove support for 'suppress_from_latest' category setting. (#8308)
This commit is contained in:
@ -47,8 +47,7 @@ class CategoriesController < ApplicationController
|
||||
style = SiteSetting.desktop_category_page_style
|
||||
topic_options = {
|
||||
per_page: SiteSetting.categories_topics,
|
||||
no_definitions: true,
|
||||
exclude_category_ids: Category.where(suppress_from_latest: true).pluck(:id)
|
||||
no_definitions: true
|
||||
}
|
||||
|
||||
if style == "categories_and_latest_topics".freeze
|
||||
@ -238,8 +237,7 @@ class CategoriesController < ApplicationController
|
||||
|
||||
topic_options = {
|
||||
per_page: SiteSetting.categories_topics,
|
||||
no_definitions: true,
|
||||
exclude_category_ids: Category.where(suppress_from_latest: true).pluck(:id)
|
||||
no_definitions: true
|
||||
}
|
||||
|
||||
result = CategoryAndTopicLists.new
|
||||
@ -291,7 +289,6 @@ class CategoriesController < ApplicationController
|
||||
:email_in,
|
||||
:email_in_allow_strangers,
|
||||
:mailinglist_mirror,
|
||||
:suppress_from_latest,
|
||||
:all_topics_wiki,
|
||||
:parent_category_id,
|
||||
:auto_close_hours,
|
||||
|
Reference in New Issue
Block a user