From 528b8e7e3a3c2abb5309f3b7c39ac2ed252d8c61 Mon Sep 17 00:00:00 2001 From: Claire Date: Sun, 23 Apr 2023 22:29:31 +0200 Subject: [PATCH] Fix crash in `tootctl accounts create --reattach --force` (#24557) --- lib/mastodon/accounts_cli.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mastodon/accounts_cli.rb b/lib/mastodon/accounts_cli.rb index e990f5f192..1ffcb76c3d 100644 --- a/lib/mastodon/accounts_cli.rb +++ b/lib/mastodon/accounts_cli.rb @@ -103,6 +103,7 @@ module Mastodon return elsif account.user.present? DeleteAccountService.new.call(account, reserve_email: false) + account = Account.new(username: username) end end