1
0

Remove unused computation of reblog references from updateTimeline (#9244)

This commit is contained in:
ThibG 2018-11-09 17:43:25 +01:00 committed by Eugen Rochko
parent ed7c5f94f7
commit 08b3de4d5e

View File

@ -16,8 +16,6 @@ export const TIMELINE_DISCONNECT = 'TIMELINE_DISCONNECT';
export function updateTimeline(timeline, status, accept) {
return (dispatch, getState) => {
const references = status.reblog ? getState().get('statuses').filter((item, itemId) => (itemId === status.reblog.id || item.get('reblog') === status.reblog.id)).map((_, itemId) => itemId) : [];
if (typeof accept === 'function' && !accept(status)) {
return;
}
@ -28,7 +26,6 @@ export function updateTimeline(timeline, status, accept) {
type: TIMELINE_UPDATE,
timeline,
status,
references,
});
};
};