diff --git a/app/assets/javascripts/components/actions/compose.jsx b/app/assets/javascripts/components/actions/compose.jsx index 228469df..d343867d 100644 --- a/app/assets/javascripts/components/actions/compose.jsx +++ b/app/assets/javascripts/components/actions/compose.jsx @@ -55,6 +55,7 @@ export function submitCompose() { media_ids: getState().getIn(['compose', 'media_attachments']).map(item => item.get('id')) }).then(function (response) { dispatch(submitComposeSuccess(response.data)); + dispatch(updateTimeline('home', response.data)); }).catch(function (error) { dispatch(submitComposeFail(error)); }); @@ -68,13 +69,9 @@ export function submitComposeRequest() { }; export function submitComposeSuccess(status) { - return (dispatch, getState) => { - dispatch({ - type: COMPOSE_SUBMIT_SUCCESS, - status: status - }); - - dispatch(updateTimeline('home', status)); + return { + type: COMPOSE_SUBMIT_SUCCESS, + status: status }; }; diff --git a/app/assets/javascripts/components/features/ui/components/compose_form.jsx b/app/assets/javascripts/components/features/ui/components/compose_form.jsx index e5464134..0655a7c7 100644 --- a/app/assets/javascripts/components/features/ui/components/compose_form.jsx +++ b/app/assets/javascripts/components/features/ui/components/compose_form.jsx @@ -132,7 +132,6 @@ const ComposeForm = React.createClass({ const inputProps = { placeholder: 'What is on your mind?', - arialabel: 'What is on your mind?', value: this.props.text, onKeyUp: this.handleKeyUp, onChange: this.handleChange, diff --git a/app/assets/javascripts/components/features/ui/components/follow_form.jsx b/app/assets/javascripts/components/features/ui/components/follow_form.jsx index be80b766..4ba5dfc2 100644 --- a/app/assets/javascripts/components/features/ui/components/follow_form.jsx +++ b/app/assets/javascripts/components/features/ui/components/follow_form.jsx @@ -33,7 +33,7 @@ const FollowForm = React.createClass({ render () { return (