Fix tootctl accounts create failing because of date-of-birth check (#34663)

This commit is contained in:
Claire authored and GitHub committed 2025-05-12 09:28:12 +00:00
1 parent 3357ae9889
commit 4e2aa78a56
4 files changed
+33 -7

No files matched your search

+8 -1
View File
@@ -79,7 +79,14 @@ module Mastodon::CLI
account = Account.new(username: username)
password = SecureRandom.hex
user = User.new(email: options[:email], password: password, agreement: true, role_id: role_id, confirmed_at: options[:confirmed] ? Time.now.utc : nil, bypass_invite_request_check: true)
user = User.new(
email: options[:email],
password: password,
agreement: true,
role_id: role_id,
confirmed_at: options[:confirmed] ? Time.now.utc : nil,
bypass_registration_checks: true
)
if options[:reattach]
account = Account.find_local(username) || Account.new(username: username)