diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-24 21:14:00 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-24 21:14:00 -0500 |
commit | b17c64b7ed54548c2ef7c3db38e8992d3fa08454 (patch) | |
tree | b5e91264c34363c4605fe3bf84d63fde6ac01c78 /app | |
parent | ce4d5a2677fbe59bc63c95ccc842569a4d51bd25 (diff) |
raise description limit to 6666
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/components/upload.js | 2 | ||||
-rw-r--r-- | app/models/media_attachment.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/upload.js b/app/javascript/flavours/glitch/features/compose/components/upload.js index 84edf664e..ef0acac84 100644 --- a/app/javascript/flavours/glitch/features/compose/components/upload.js +++ b/app/javascript/flavours/glitch/features/compose/components/upload.js @@ -113,7 +113,7 @@ class Upload extends ImmutablePureComponent { <textarea placeholder={intl.formatMessage(messages.description)} value={description} - maxLength={420} + maxLength={6666} onFocus={this.handleInputFocus} onChange={this.handleInputChange} onBlur={this.handleInputBlur} diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index c8290384b..3efab0aa1 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -144,7 +144,7 @@ class MediaAttachment < ApplicationRecord include Attachmentable validates :account, presence: true - validates :description, length: { maximum: 666 }, if: :local? + validates :description, length: { maximum: 6666 }, 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) } |