mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
Merge commit '366856f3bcdc2ff008b04e493a5de317ab83d5d0' into glitch-soc/merge-upstream
This commit is contained in:
@@ -31,9 +31,10 @@ class IpBlock < ApplicationRecord
|
||||
|
||||
after_commit :reset_cache
|
||||
|
||||
def to_log_human_identifier
|
||||
def to_cidr
|
||||
"#{ip}/#{ip.prefix}"
|
||||
end
|
||||
alias to_log_human_identifier to_cidr
|
||||
|
||||
class << self
|
||||
def blocked?(remote_ip)
|
||||
|
||||
Reference in New Issue
Block a user