mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Select +Replies for bulk operations
This commit is contained in:
@ -150,10 +150,11 @@ class PostsController < ApplicationController
|
||||
|
||||
params.require(:post_ids)
|
||||
|
||||
posts = Post.where(id: params[:post_ids])
|
||||
posts = Post.where(id: post_ids_including_replies)
|
||||
raise Discourse::InvalidParameters.new(:post_ids) if posts.blank?
|
||||
|
||||
# Make sure we can delete the posts
|
||||
|
||||
posts.each {|p| guardian.ensure_can_delete!(p) }
|
||||
|
||||
Post.transaction do
|
||||
|
Reference in New Issue
Block a user