Fix wrong prediction of whether toot will apear on public timeline in UI

lolsob-rspec
Eugen Rochko 2017-02-07 00:40:35 +01:00
parent af82038b98
commit 0ba2b2d54e
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ export function submitCompose() {
// To make the app more responsive, immediately get the status into the columns // To make the app more responsive, immediately get the status into the columns
dispatch(updateTimeline('home', { ...response.data })); dispatch(updateTimeline('home', { ...response.data }));
if (response.data.in_reply_to_id === null && !getState().getIn(['compose', 'private']) && !getState().getIn(['compose', 'unlisted'])) { if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {
dispatch(updateTimeline('public', { ...response.data })); dispatch(updateTimeline('public', { ...response.data }));
} }
}).catch(function (error) { }).catch(function (error) {

View File

@ -3,7 +3,7 @@ import PureRenderMixin from 'react-addons-pure-render-mixin';
const Button = React.createClass({ const Button = React.createClass({
propTypes: { propTypes: {
text: React.PropTypes.string, text: React.PropTypes.node,
onClick: React.PropTypes.func, onClick: React.PropTypes.func,
disabled: React.PropTypes.bool, disabled: React.PropTypes.bool,
block: React.PropTypes.bool, block: React.PropTypes.bool,