Merge commit '88ce59505e' into kb_migration

This commit is contained in:
KMY 2023-04-21 09:49:55 +09:00
commit 04253356cf
4 changed files with 49 additions and 36 deletions

View file

@ -543,7 +543,7 @@ module Mastodon
if options[:all]
User.pending.find_each(&:approve!)
say('OK', :green)
elsif options[:number]
elsif options[:number]&.positive?
User.pending.limit(options[:number]).each(&:approve!)
say('OK', :green)
elsif username.present?
@ -557,6 +557,7 @@ module Mastodon
account.user&.approve!
say('OK', :green)
else
say('Number must be positive', :red) if options[:number]
exit(1)
end
end