Add <MissingIndicator /> when status or account are not found, skip alerts
for those errors
This commit is contained in:
parent
4bb8ff7c8e
commit
4fbdf100c4
8 changed files with 27 additions and 36 deletions
|
@ -39,14 +39,15 @@ const normalizeStatus = (state, status) => {
|
|||
return state;
|
||||
}
|
||||
|
||||
status.account = status.account.id;
|
||||
const normalStatus = { ...status };
|
||||
normalStatus.account = status.account.id;
|
||||
|
||||
if (status.reblog && status.reblog.id) {
|
||||
state = normalizeStatus(state, status.reblog);
|
||||
status.reblog = status.reblog.id;
|
||||
state = normalizeStatus(state, status.reblog);
|
||||
normalStatus.reblog = status.reblog.id;
|
||||
}
|
||||
|
||||
return state.update(status.id, Immutable.Map(), map => map.mergeDeep(Immutable.fromJS(status)));
|
||||
return state.update(status.id, Immutable.Map(), map => map.mergeDeep(Immutable.fromJS(normalStatus)));
|
||||
};
|
||||
|
||||
const normalizeStatuses = (state, statuses) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue