Browse Source

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

pull/4/head
ThibG 6 years ago
committed by Eugen Rochko
parent
commit
08b3de4d5e
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      app/javascript/mastodon/actions/timelines.js

+ 0
- 3
app/javascript/mastodon/actions/timelines.js 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,
});
};
};

Loading…
Cancel
Save