Skip to content
Snippets Groups Projects
Commit 8a081ce5 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

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

parent 714e41d4
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ export function submitCompose() {
// To make the app more responsive, immediately get the status into the columns
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 }));
}
}).catch(function (error) {
......
......@@ -3,7 +3,7 @@ import PureRenderMixin from 'react-addons-pure-render-mixin';
const Button = React.createClass({
propTypes: {
text: React.PropTypes.string,
text: React.PropTypes.node,
onClick: React.PropTypes.func,
disabled: React.PropTypes.bool,
block: React.PropTypes.bool,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment