mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: include TopicQueryParams in TagsController (#8045)
* DEV: include TopicQueryParams in TagsController * Fix rubocop
This commit is contained in:
parent
d14851e552
commit
68f87dffa5
@ -1,11 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_dependency 'topic_list_responder'
|
||||
require_dependency 'topic_query_params'
|
||||
require_dependency 'topics_bulk_action'
|
||||
require_dependency 'topic_query'
|
||||
|
||||
class TagsController < ::ApplicationController
|
||||
include TopicListResponder
|
||||
include TopicQueryParams
|
||||
|
||||
before_action :ensure_tags_enabled
|
||||
|
||||
@ -355,7 +357,7 @@ class TagsController < ::ApplicationController
|
||||
end
|
||||
|
||||
def build_topic_list_options
|
||||
options = {
|
||||
options = super.merge(
|
||||
page: params[:page],
|
||||
topic_ids: param_to_integer_list(:topic_ids),
|
||||
exclude_category_ids: params[:exclude_category_ids],
|
||||
@ -369,7 +371,7 @@ class TagsController < ::ApplicationController
|
||||
state: params[:state],
|
||||
search: params[:search],
|
||||
q: params[:q]
|
||||
}
|
||||
)
|
||||
options[:no_subcategories] = true if params[:no_subcategories] == 'true'
|
||||
|
||||
if params[:tag_id] == 'none'
|
||||
|
Loading…
Reference in New Issue
Block a user