mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix admin account created by mastodon:setup
not being auto-approved (#29379)
This commit is contained in:
parent
25ffe0af45
commit
cfa71a4d16
1 changed files with 1 additions and 0 deletions
|
@ -544,6 +544,7 @@ namespace :mastodon do
|
|||
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.save(validate: false)
|
||||
user.approve!
|
||||
|
||||
Setting.site_contact_username = username
|
||||
|
||||
|
|
Loading…
Reference in a new issue