From 04467e8f6dba4f38bf5811fb0c428756a41d7f3d 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 97cefaa207..3717fe5a1e 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 c2672845ec..b06c0457f3 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));