Fix crash in `tootctl accounts create --reattach --force` (#24557)
parent
d8e7a72597
commit
df83ca4e25
|
@ -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…
Reference in New Issue