0
0
Fork 0

Do not distribute Delete when rejecting unapproved accounts (#10321)

This commit is contained in:
ThibG 2019-03-19 16:33:30 +01:00 committed by Eugen Rochko
parent d041b7a1e7
commit 1217185cfa
2 changed files with 2 additions and 2 deletions

View file

@ -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])