Browse Source

This should fix it

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
b62c31306e
2 changed files with 1 additions and 5 deletions
  1. +1
    -3
      app/assets/javascripts/components/components/status.jsx
  2. +0
    -2
      app/assets/javascripts/components/selectors/index.jsx

+ 1
- 3
app/assets/javascripts/components/components/status.jsx View File

@ -44,9 +44,7 @@ const Status = React.createClass({
let media = '';
let { status, ...other } = this.props;
if (status.get('reblog', null) !== null) {
console.log(status.get('id'), status.get('reblog'));
if (status.get('reblog', null) !== null && typeof status.get('reblog') === 'object') {
let displayName = status.getIn(['account', 'display_name']);
if (displayName.length === 0) {

+ 0
- 2
app/assets/javascripts/components/selectors/index.jsx View File

@ -45,8 +45,6 @@ const assembleStatus = (id, statuses, accounts) => {
}
}
console.log('assembly for status', id, Immutable.Map.isMap(reblog) ? reblog.toJS() : reblog);
return status.set('reblog', reblog).set('account', accounts.get(status.get('account')));
};

Loading…
Cancel
Save