gearheads
/
mastodon
Archived
2
0
Fork 0

Fix `tootctl accounts approve --number N` not aproving N earliest registrations (#24605)

gh/dev
Daniel M Brasil 2023-04-30 01:50:58 -03:00 committed by GitHub
parent 2e43461100
commit e8fe941015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ module Mastodon
User.pending.find_each(&:approve!) User.pending.find_each(&:approve!)
say('OK', :green) say('OK', :green)
elsif options[:number]&.positive? elsif options[:number]&.positive?
User.pending.limit(options[:number]).each(&:approve!) User.pending.order(created_at: :asc).limit(options[:number]).each(&:approve!)
say('OK', :green) say('OK', :green)
elsif username.present? elsif username.present?
account = Account.find_local(username) account = Account.find_local(username)