mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Use enum-generated IpBlock.severity... scopes (#31210)
This commit is contained in:
@@ -16,6 +16,6 @@ module RegistrationHelper
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user