Fix crash in `tootctl accounts create --reattach --force` (#24557)

th-downstream
Claire 2 years ago committed by GitHub
parent 58a1b2e330
commit 528b8e7e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,6 +103,7 @@ module Mastodon
return return
elsif account.user.present? elsif account.user.present?
DeleteAccountService.new.call(account, reserve_email: false) DeleteAccountService.new.call(account, reserve_email: false)
account = Account.new(username: username)
end end
end end

Loading…
Cancel
Save