mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Fix HTTP 500 on POST /api/v1/admin/ip_blocks (#29308)
This commit is contained in:
@@ -24,7 +24,7 @@ class IpBlock < ApplicationRecord
|
||||
sign_up_requires_approval: 5000,
|
||||
sign_up_block: 5500,
|
||||
no_access: 9999,
|
||||
}, prefix: true
|
||||
}, prefix: true, validate: true
|
||||
|
||||
validates :ip, :severity, presence: true
|
||||
validates :ip, uniqueness: true
|
||||
|
||||
Reference in New Issue
Block a user