Fix `tootctl accounts create --reattach --force` not working with confirmed accounts (#24680)

main
Daniel M Brasil 2023-04-27 05:15:45 -03:00 committed by GitHub
parent 49fad26eca
commit 1d9969fadf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ module Mastodon
say('Use --force to reattach it anyway and delete the other user') say('Use --force to reattach it anyway and delete the other user')
return return
elsif account.user.present? elsif account.user.present?
DeleteAccountService.new.call(account, reserve_email: false) DeleteAccountService.new.call(account, reserve_email: false, reserve_username: false)
account = Account.new(username: username) account = Account.new(username: username)
end end
end end