'Idempotency-Key': getState().getIn(['compose', 'idempotencyKey']),
},
}).then(function (response) {
+ if (routerHistory && routerHistory.location.pathname === '/statuses/new'
+ && window.history.state
+ && !getState().getIn(['compose', 'advanced_options', 'threaded_mode'])) {
+ routerHistory.goBack();
+ }
+
dispatch(insertIntoTagHistory(response.data.tags, status));
dispatch(submitComposeSuccess({ ...response.data }));
}
};
- if (routerHistory && routerHistory.location.pathname === '/statuses/new'
- && window.history.state
- && !getState().getIn(['compose', 'advanced_options', 'threaded_mode'])) {
- routerHistory.goBack();
- }
-
insertIfOnline('home');
if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {