about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-19 16:33:30 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-03-19 16:33:30 +0100
commit1217185cfa7fa13e78f979e8723fc82f93a28205 (patch)
tree5ad5e7e7dcc268240fbe968338bace2382778d4b /app/services
parentd041b7a1e77f9e2a9122d8b04d247673c4fda3db (diff)
Do not distribute Delete when rejecting unapproved accounts (#10321)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/suspend_account_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb
index 24fa1be69..6c2ecad30 100644
--- a/app/services/suspend_account_service.rb
+++ b/app/services/suspend_account_service.rb
@@ -68,7 +68,7 @@ class SuspendAccountService < BaseService
   end
 
   def purge_content!
-    distribute_delete_actor! if @account.local?
+    distribute_delete_actor! if @account.local? && !@options[:skip_distribution]
 
     @account.statuses.reorder(nil).find_in_batches do |statuses|
       BatchedRemoveStatusService.new.call(statuses, skip_side_effects: @options[:destroy])