mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 05:58:19 +08:00
PERF: delete potentially large associated tables before user_destroyer.destroy transaction
This commit is contained in:
@ -409,6 +409,7 @@ class Admin::UsersController < Admin::AdminController
|
||||
|
||||
options = params.slice(:block_email, :block_urls, :block_ip, :context, :delete_as_spammer)
|
||||
options[:delete_posts] = ActiveModel::Type::Boolean.new.cast(params[:delete_posts])
|
||||
options[:prepare_for_destroy] = true
|
||||
|
||||
hijack do
|
||||
begin
|
||||
|
Reference in New Issue
Block a user