Fix tootctl accounts approve --number N
not aproving N earliest registrations (#24605)
This commit is contained in:
parent
feac95333f
commit
176ae71fd4
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ module Mastodon
|
|||
User.pending.find_each(&:approve!)
|
||||
say('OK', :green)
|
||||
elsif options[:number]
|
||||
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…
Reference in a new issue