diff --git a/app/assets/javascripts/components/components/status.jsx b/app/assets/javascripts/components/components/status.jsx index 5437591136430ec3844a21b8556ea1168946c1b0..d3acff3f0c064f88b4d88205abb547a505e1f5bc 100644 --- a/app/assets/javascripts/components/components/status.jsx +++ b/app/assets/javascripts/components/components/status.jsx @@ -45,8 +45,6 @@ const Status = React.createClass({ var { status, ...other } = this.props; - console.log(status, this.props); - if (status.get('reblog') !== null) { let displayName = status.getIn(['account', 'display_name']); diff --git a/app/assets/javascripts/components/selectors/index.jsx b/app/assets/javascripts/components/selectors/index.jsx index c3c007f282bfdfca2b0277f138a6a7c3a6657b6b..91f900f9048df1885c64cba7fdc82f62aef33c37 100644 --- a/app/assets/javascripts/components/selectors/index.jsx +++ b/app/assets/javascripts/components/selectors/index.jsx @@ -29,15 +29,20 @@ const getAccountTimelineIds = (state, id) => state.getIn(['timelines', 'accounts const assembleStatus = (id, statuses, accounts) => { let status = statuses.get(id, null); + let reblog = null; if (status === null) { return null; } - let reblog = statuses.get(status.get('reblog'), null); + if (status.get('reblog', null) !== null) { + reblog = statuses.get(status.get('reblog'), null); - if (reblog !== null) { - reblog = reblog.set('account', accounts.get(reblog.get('account'))); + if (reblog !== null) { + reblog = reblog.set('account', accounts.get(reblog.get('account'))); + } else { + return null; + } } return status.set('reblog', reblog).set('account', accounts.get(status.get('account')));