2
0

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

This commit is contained in:
Claire
2025-05-12 11:28:12 +02:00
committed by GitHub
parent 3357ae9889
commit 4e2aa78a56
4 changed files with 33 additions and 7 deletions

View File

@@ -552,7 +552,7 @@ namespace :mastodon do
password = SecureRandom.hex(16)
owner_role = UserRole.find_by(name: 'Owner')
user = User.new(email: email, password: password, confirmed_at: Time.now.utc, account_attributes: { username: username }, bypass_invite_request_check: true, role: owner_role)
user = User.new(email: email, password: password, confirmed_at: Time.now.utc, account_attributes: { username: username }, bypass_registration_checks: true, role: owner_role)
user.save(validate: false)
user.approve!