0
0
Fork 0

Use enum-generated scope for IpBlock in CLI (#28144)

This commit is contained in:
Matt Jankowski 2024-03-14 05:31:15 -04:00 committed by GitHub
parent 681a89f684
commit 19cbadfbd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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};"