diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb index f9725917496..eca1bd16cf7 100644 --- a/lib/plugin/instance.rb +++ b/lib/plugin/instance.rb @@ -1286,6 +1286,10 @@ class Plugin::Instance DiscoursePluginRegistry.register_post_stripper({ block: block }, self) end + def register_search_group_query_callback(callback) + DiscoursePluginRegistry.register_search_groups_set_query_callback(callback, self) + end + protected def self.js_path @@ -1367,10 +1371,6 @@ class Plugin::Instance DiscoursePluginRegistry.register_topic_preloader_association(fields, self) end - def register_search_group_query_callback(callback) - DiscoursePluginRegistry.register_search_groups_set_query_callback(callback, self) - end - private def setting_category