about summary refs log tree commit diff
path: root/app/models/media_attachment.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-13 16:00:34 +0200
committerGitHub <noreply@github.com>2019-09-13 16:00:34 +0200
commitb6381bdc7dcfe5713b99e2aae0491115350c7724 (patch)
tree254aca9c8074ad80aaf45bf602e549de0cfb769e /app/models/media_attachment.rb
parentbc869501f5cf98a99b18f6d1bcab3b51db04008d (diff)
Change max length of media descriptions from 420 to 1500 characters (#11819)
Fix #11658
Diffstat (limited to 'app/models/media_attachment.rb')
-rw-r--r--app/models/media_attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index a2b73f150..c4932f2ef 100644
--- a/app/models/media_attachment.rb
+++ b/app/models/media_attachment.rb
@@ -123,7 +123,7 @@ class MediaAttachment < ApplicationRecord
   include Attachmentable
 
   validates :account, presence: true
-  validates :description, length: { maximum: 420 }, if: :local?
+  validates :description, length: { maximum: 1_500 }, if: :local?
 
   scope :attached,   -> { where.not(status_id: nil).or(where.not(scheduled_status_id: nil)) }
   scope :unattached, -> { where(status_id: nil, scheduled_status_id: nil) }