From ef2a6bc6469e875fc29a0f0ec381b78f3858cf8f Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 10 Aug 2023 13:13:28 +0200 Subject: [PATCH] Fix a deletion request being created for self-destruct-deleted accounts --- lib/mastodon/cli/main.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mastodon/cli/main.rb b/lib/mastodon/cli/main.rb index 1594eadce8..4fa3e371ce 100644 --- a/lib/mastodon/cli/main.rb +++ b/lib/mastodon/cli/main.rb @@ -130,7 +130,8 @@ module Mastodon::CLI [json, account.id, inbox_url] end - account.suspend!(block_email: false) + # Do not call `Account#suspend!` because we don't want to issue a deletion request + account.update!(suspended_at: Time.now.utc, suspension_origin: :local) end processed += 1