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

pull/23674/head
Daniel M Brasil 2 years ago committed by GitHub
parent 2e43461100
commit e8fe941015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -545,7 +545,7 @@ module Mastodon
User.pending.find_each(&:approve!)
say('OK', :green)
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)
elsif username.present?
account = Account.find_local(username)

Loading…
Cancel
Save