mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-25 17:12:58 -05:00
Fix tootctl accounts approve --number N
not aproving N earliest registrations (#24605)
This commit is contained in:
parent
2e43461100
commit
e8fe941015
@ -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…
x
Reference in New Issue
Block a user