Skip to content

Commit

Permalink
Use enum-generated IpBlock.severity... scopes (mastodon#31210)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Nov 8, 2024
1 parent 10c895d commit 1e71c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/registration_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def omniauth_only?
end

def ip_blocked?(remote_ip)
IpBlock.where(severity: :sign_up_block).containing(remote_ip.to_s).exists?
IpBlock.severity_sign_up_block.containing(remote_ip.to_s).exists?
end
end

0 comments on commit 1e71c4e

Please sign in to comment.