Fix `tootctl accounts create --reattach --force` not working with confirmed accounts (#24680)
parent
519ae8c0c6
commit
84c6f7a1a6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue