Fix a deletion request being created for self-destruct-deleted accounts

This commit is contained in:
Claire 2023-08-10 13:13:28 +02:00
parent 426ca4f76c
commit ef2a6bc646

View file

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