mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Introduced topic_query_create_list_topics modifier (#21016)
Introduced a modifier on topic_query to change list while they're created Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
@@ -460,6 +460,8 @@ class TopicQuery
|
||||
options[:filter] ||= filter
|
||||
topics ||= default_results(options)
|
||||
topics = yield(topics) if block_given?
|
||||
topics =
|
||||
DiscoursePluginRegistry.apply_modifier(:topic_query_create_list_topics, topics, options, self)
|
||||
|
||||
options = options.merge(@options)
|
||||
if %w[activity default].include?(options[:order] || "activity") && !options[:unordered] &&
|
||||
|
||||
Reference in New Issue
Block a user