mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Select +Replies for bulk operations
This commit is contained in:
@@ -191,6 +191,16 @@ class ApplicationController < ActionController::Base
|
||||
user
|
||||
end
|
||||
|
||||
def post_ids_including_replies
|
||||
post_ids = params[:post_ids].map {|p| p.to_i}
|
||||
if params[:reply_post_ids]
|
||||
post_ids << PostReply.where(post_id: params[:reply_post_ids].map {|p| p.to_i}).pluck(:reply_id)
|
||||
post_ids.flatten!
|
||||
post_ids.uniq!
|
||||
end
|
||||
post_ids
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def preload_anonymous_data
|
||||
|
||||
Reference in New Issue
Block a user