mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
FEATURE: Site setting to always show category definitions (#10124)
This commit is contained in:

committed by
GitHub

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}")
|
||||
|
||||
|
Reference in New Issue
Block a user