about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features
diff options
context:
space:
mode:
authorNoiob <8197071+noiob@users.noreply.github.com>2021-04-04 21:42:30 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-04-05 14:30:43 +0200
commit39b9a0619ab4ba68ed429152153cf0dbbfcd5a5a (patch)
tree6fb29e9c0a6d10e1e16f56a6d667e5bac7c473df /app/javascript/flavours/glitch/features
parentb7ec2a900251410c65ba214b50c1657209285b07 (diff)
Remove superfluous toot length check
Diffstat (limited to 'app/javascript/flavours/glitch/features')
-rw-r--r--app/javascript/flavours/glitch/features/compose/components/publisher.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/publisher.js b/app/javascript/flavours/glitch/features/compose/components/publisher.js
index 97890f40d..1531dcaa9 100644
--- a/app/javascript/flavours/glitch/features/compose/components/publisher.js
+++ b/app/javascript/flavours/glitch/features/compose/components/publisher.js
@@ -47,7 +47,7 @@ class Publisher extends ImmutablePureComponent {
 
     const diff = maxChars - length(countText || '');
     const computedClass = classNames('composer--publisher', {
-      disabled: disabled || diff < 0,
+      disabled: disabled,
       over: diff < 0,
     });
 
@@ -56,7 +56,7 @@ class Publisher extends ImmutablePureComponent {
         {sideArm && sideArm !== 'none' ? (
           <Button
             className='side_arm'
-            disabled={disabled || diff < 0}
+            disabled={disabled}
             onClick={onSecondarySubmit}
             style={{ padding: null }}
             text={
@@ -110,7 +110,7 @@ class Publisher extends ImmutablePureComponent {
           }()}
           title={`${intl.formatMessage(messages.publish)}: ${intl.formatMessage({ id: `privacy.${privacy}.short` })}`}
           onClick={this.handleSubmit}
-          disabled={disabled || diff < 0}
+          disabled={disabled}
         />
       </div>
     );