diff options
author | ThibG <thib@sitedethib.com> | 2020-04-28 09:53:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 09:53:42 +0200 |
commit | ad9c7aefe6618a70c69991b7daf100573a7e27b9 (patch) | |
tree | 0a69e21ec542d54245f064993751fd5cc7d3903f /app/javascript/mastodon/actions/timelines.js | |
parent | 04eb59986461bc802d4432fe4131e09eadd070c0 (diff) |
Refactor/cleanup TIMELINE_DELETE-related code (#13175)
Diffstat (limited to 'app/javascript/mastodon/actions/timelines.js')
-rw-r--r-- | app/javascript/mastodon/actions/timelines.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/timelines.js b/app/javascript/mastodon/actions/timelines.js index 50840cacc..861827d33 100644 --- a/app/javascript/mastodon/actions/timelines.js +++ b/app/javascript/mastodon/actions/timelines.js @@ -42,7 +42,7 @@ export function updateTimeline(timeline, status, accept) { export function deleteFromTimelines(id) { return (dispatch, getState) => { const accountId = getState().getIn(['statuses', id, 'account']); - const references = getState().get('statuses').filter(status => status.get('reblog') === id).map(status => [status.get('id'), status.get('account')]); + const references = getState().get('statuses').filter(status => status.get('reblog') === id).map(status => status.get('id')); const reblogOf = getState().getIn(['statuses', id, 'reblog'], null); dispatch({ |