From 490c1a2244ff52d263554b9baffb0b82548f41e1 Mon Sep 17 00:00:00 2001 From: fef Date: Thu, 1 Dec 2022 04:26:13 +0000 Subject: [PATCH] remove unnecessary parameter --- app/javascript/flavours/glitch/actions/interactions.js | 4 ++-- app/javascript/mastodon/actions/interactions.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/flavours/glitch/actions/interactions.js b/app/javascript/flavours/glitch/actions/interactions.js index f2c8c47334..dbcf13ec41 100644 --- a/app/javascript/flavours/glitch/actions/interactions.js +++ b/app/javascript/flavours/glitch/actions/interactions.js @@ -413,11 +413,11 @@ export const addReaction = (statusId, name) => (dispatch, getState) => { } } if (!alreadyAdded) { - dispatch(addReactionRequest(statusId, name, alreadyAdded)); + dispatch(addReactionRequest(statusId, name)); } api(getState).post(`/api/v1/statuses/${statusId}/react/${name}`).then(() => { - dispatch(addReactionSuccess(statusId, name, alreadyAdded)); + dispatch(addReactionSuccess(statusId, name)); }).catch(err => { if (!alreadyAdded) { dispatch(addReactionFail(statusId, name, err)); diff --git a/app/javascript/mastodon/actions/interactions.js b/app/javascript/mastodon/actions/interactions.js index 8619232a5b..8f2335ce95 100644 --- a/app/javascript/mastodon/actions/interactions.js +++ b/app/javascript/mastodon/actions/interactions.js @@ -433,11 +433,11 @@ export const addReaction = (statusId, name) => (dispatch, getState) => { } } if (!alreadyAdded) { - dispatch(addReactionRequest(statusId, name, alreadyAdded)); + dispatch(addReactionRequest(statusId, name)); } api(getState).post(`/api/v1/statuses/${statusId}/react/${name}`).then(() => { - dispatch(addReactionSuccess(statusId, name, alreadyAdded)); + dispatch(addReactionSuccess(statusId, name)); }).catch(err => { if (!alreadyAdded) { dispatch(addReactionFail(statusId, name, err));