mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:31:02 +08:00
Front end code is complete for changing categories of topics in bulk
This commit is contained in:
@ -19,7 +19,8 @@ class TopicsController < ApplicationController
|
||||
:move_posts,
|
||||
:merge_topic,
|
||||
:clear_pin,
|
||||
:autoclose]
|
||||
:autoclose,
|
||||
:bulk]
|
||||
|
||||
before_filter :consider_user_for_promotion, only: :show
|
||||
|
||||
@ -266,6 +267,11 @@ class TopicsController < ApplicationController
|
||||
render 'topics/show', formats: [:rss]
|
||||
end
|
||||
|
||||
def bulk
|
||||
topic_ids = params.require(:topic_ids).map {|t| t.to_i}
|
||||
render_json_dump topic_ids: topic_ids
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def toggle_mute
|
||||
|
Reference in New Issue
Block a user