Skip to content

Commit

Permalink
remove unnecessary parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
fef1312 committed Dec 1, 2022
1 parent 059cc99 commit 49b0f93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/javascript/flavours/glitch/actions/interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/actions/interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 49b0f93

Please sign in to comment.