mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 23:20:44 +01:00
Fix crash in tootctl accounts create --reattach --force
(#24557)
This commit is contained in:
parent
58a1b2e330
commit
528b8e7e3a
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue