Use enum-generated scope for IpBlock
in CLI (#28144)
This commit is contained in:
parent
681a89f684
commit
19cbadfbd6
3 changed files with 3 additions and 3 deletions
|
@ -105,7 +105,7 @@ module Mastodon::CLI
|
|||
tools. Only blocks with no_access severity are returned.
|
||||
LONG_DESC
|
||||
def export
|
||||
IpBlock.where(severity: :no_access).find_each do |ip_block|
|
||||
IpBlock.severity_no_access.find_each do |ip_block|
|
||||
case options[:format]
|
||||
when 'nginx'
|
||||
say "deny #{ip_block.ip}/#{ip_block.ip.prefix};"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue