From f69d7cb43b3445d67a3549d87dd71dacf2b5be1e Mon Sep 17 00:00:00 2001 From: takayamaki Date: Thu, 22 Feb 2018 00:30:46 +0900 Subject: [PATCH] fix purge_removed_accounts task should suspend account before delete it (#6521) --- lib/tasks/mastodon.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index e144621e57..d2e4f38a9a 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -752,6 +752,7 @@ namespace :mastodon do if [404, 410].include?(res.code) if options[:force] + SuspendAccountService.new.call(account) account.destroy else progress_bar.pause @@ -764,6 +765,7 @@ namespace :mastodon do if confirm.casecmp('n').zero? next else + SuspendAccountService.new.call(account) account.destroy end end