]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Change max length of media descriptions from 420 to 1500 characters
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 13 Sep 2019 14:00:34 +0000 (16:00 +0200)
committerThibaut Girka <thib@sitedethib.com>
Fri, 13 Sep 2019 16:38:37 +0000 (18:38 +0200)
Port b6381bdc7dcfe5713b99e2aae0491115350c7724 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js

index 7d1deb4ce9496ced71da9514121a6ed6034fc2e1..ced7bd238d8dff8ace5d4357b0d3417d604a8231 100644 (file)
@@ -223,7 +223,7 @@ class FocalPointModal extends ImmutablePureComponent {
 
             <div className='setting-text__toolbar'>
               <button disabled={detecting || media.get('type') !== 'image'} className='link-button' onClick={this.handleTextDetection}><FormattedMessage id='upload_modal.detect_text' defaultMessage='Detect text from picture' /></button>
-              <CharacterCounter max={420} text={detecting ? '' : description} />
+              <CharacterCounter max={1500} text={detecting ? '' : description} />
             </div>
 
             <Button disabled={!dirty || detecting || length(description) > 420} text={intl.formatMessage(messages.apply)} onClick={this.handleSubmit} />