mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 10:22:01 +08:00
FEATURE: Site setting to always show category definitions (#10124)
This commit is contained in:
parent
598b7914b6
commit
cd5cfc1496
|
@ -52,7 +52,9 @@ class ListController < ApplicationController
|
|||
list_opts = build_topic_list_options
|
||||
list_opts.merge!(options) if options
|
||||
user = list_target_user
|
||||
list_opts[:no_definitions] = true if params[:category].blank? && filter == :latest
|
||||
if params[:category].blank? && filter == :latest && !SiteSetting.show_category_definitions_in_topic_lists
|
||||
list_opts[:no_definitions] = true
|
||||
end
|
||||
|
||||
list = TopicQuery.new(user, list_opts).public_send("list_#{filter}")
|
||||
|
||||
|
|
|
@ -2034,6 +2034,9 @@ uncategorized:
|
|||
overridden_robots_txt:
|
||||
default: ""
|
||||
hidden: true
|
||||
show_category_definitions_in_topic_lists:
|
||||
default: false
|
||||
hidden: true
|
||||
|
||||
user_preferences:
|
||||
default_email_digest_frequency:
|
||||
|
|
Loading…
Reference in New Issue
Block a user