Skip to content

Commit

Permalink
Fix admin account created by mastodon:setup not being auto-approved (
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed May 16, 2024
1 parent 06614f6 commit 28ab979
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/mastodon.rake
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,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

Expand Down

0 comments on commit 28ab979

Please sign in to comment.