]> cat aescling's git repositories - mastodon.git/commitdiff
Fix reply bug introduced when compose form started using normalized data
authorEugen <eugen@zeonfederated.com>
Mon, 5 Sep 2016 20:43:34 +0000 (22:43 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Sep 2016 20:43:34 +0000 (22:43 +0200)
app/assets/javascripts/components/actions/compose.jsx

index 1efb1ba9d5c8d7a20dde28438fc155f434675e2a..4954f0f5c4f76aafb155d3329e063768f2774501 100644 (file)
@@ -34,7 +34,7 @@ export function submitCompose() {
 
     api(getState).post('/api/statuses', {
       status: getState().getIn(['compose', 'text'], ''),
-      in_reply_to_id: getState().getIn(['compose', 'in_reply_to', 'id'], null)
+      in_reply_to_id: getState().getIn(['compose', 'in_reply_to'], null)
     }).then(function (response) {
       dispatch(submitComposeSuccess(response.data));
     }).catch(function (error) {