Fix file upload

master
Thibaut Girka 6 years ago committed by ThibG
parent 3d722b0c4e
commit 416aa832e5
  1. 2
      app/javascript/flavours/glitch/features/compose/components/compose_form.js

@ -351,7 +351,7 @@ class ComposeForm extends ImmutablePureComponent {
disabled={isSubmitting}
onChangeVisibility={onChangeVisibility}
onToggleSpoiler={spoilersAlwaysOn ? null : onChangeSpoilerness}
onPaste={onPaste}
onUpload={onPaste}
privacy={privacy}
sensitive={sensitive || (spoilersAlwaysOn && spoilerText && spoilerText.length > 0)}
spoiler={spoilersAlwaysOn ? (spoilerText && spoilerText.length > 0) : spoiler}

Loading…
Cancel
Save