forked from treehouse/mastodon
This should fix it
parent
f8b9b0810d
commit
b62c31306e
|
@ -44,9 +44,7 @@ const Status = React.createClass({
|
||||||
let media = '';
|
let media = '';
|
||||||
let { status, ...other } = this.props;
|
let { status, ...other } = this.props;
|
||||||
|
|
||||||
if (status.get('reblog', null) !== null) {
|
if (status.get('reblog', null) !== null && typeof status.get('reblog') === 'object') {
|
||||||
console.log(status.get('id'), status.get('reblog'));
|
|
||||||
|
|
||||||
let displayName = status.getIn(['account', 'display_name']);
|
let displayName = status.getIn(['account', 'display_name']);
|
||||||
|
|
||||||
if (displayName.length === 0) {
|
if (displayName.length === 0) {
|
||||||
|
|
|
@ -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')));
|
return status.set('reblog', reblog).set('account', accounts.get(status.get('account')));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue