X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721f8e00b287974d6346e3c62bb8d0d599cc7db3..d2dc1ff8978a3ed9636c172a7e3cfb8e3d83410b:/app/models/user_block.rb diff --git a/app/models/user_block.rb b/app/models/user_block.rb index 9dd8d3138..61235c418 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -28,7 +28,7 @@ class UserBlock < ApplicationRecord validate :moderator_permissions - validates :reason, :characters => true + validates :reason, :characters => true, :length => { :maximum => 10000 } validates :deactivates_at, :comparison => { :greater_than_or_equal_to => :ends_at }, :unless => -> { needs_view } validates :deactivates_at, :absence => true, :if => -> { needs_view }