diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/components/components/status.jsx | 2 | ||||
-rw-r--r-- | app/assets/javascripts/components/reducers/timelines.jsx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/components/status.jsx b/app/assets/javascripts/components/components/status.jsx index d3acff3f0..543759113 100644 --- a/app/assets/javascripts/components/components/status.jsx +++ b/app/assets/javascripts/components/components/status.jsx @@ -45,6 +45,8 @@ 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/reducers/timelines.jsx b/app/assets/javascripts/components/reducers/timelines.jsx index 2059079eb..ba4ac921d 100644 --- a/app/assets/javascripts/components/reducers/timelines.jsx +++ b/app/assets/javascripts/components/reducers/timelines.jsx @@ -129,7 +129,7 @@ function updateTimeline(state, timeline, status) { if (reblogOfId !== null) { const otherReblogs = state.get('statuses').filter(item => item.get('reblog') === reblogOfId).map((_, itemId) => itemId); - list = list.filterNot(itemId => itemId === reblogOfId || otherReblogs.includes(itemId)); + list = list.filterNot(itemId => (itemId === reblogOfId || otherReblogs.includes(itemId))); } return list.unshift(status.get('id')); |