Soft fix for long messages generating malformed links

parent 80c87cec
Pipeline #43819640 failed with stages
in 13 minutes and 4 seconds
class Message < ActiveRecord::Base
attr_accessor :body
attr_readonly :data
validates_length_of :data, maximum: 16.kilobytes + 32
validates_length_of :data, maximum: 14000
%div.validation-error(aria-hidden='true' role='alert')= t('validation-error') placeholder="#{t('new-message.placeholder')}" maxlength=16384 name='body') placeholder="#{t('new-message.placeholder')}" maxlength=10000 name='body')
= form_for @message do |f|
= f.hidden_field :data
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment