mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 18:02:59 +01:00
Will this fix the issue?
This commit is contained in:
parent
6611e3a2ef
commit
fdd30af595
2 changed files with 8 additions and 5 deletions
|
@ -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']);
|
||||
|
||||
|
|
|
@ -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')));
|
||||
|
|
Loading…
Reference in a new issue