mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-08 08:44:27 +00:00
Fix a deletion request being created for self-destruct-deleted accounts
This commit is contained in:
parent
426ca4f76c
commit
ef2a6bc646
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue