summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-04-17 18:26:51 +0200
committerLouis Chemineau <louis@chmn.me>2023-04-20 10:15:10 +0200
commite9f9957a6d0cb5718f96967825a12a67cadf1466 (patch)
treecb11a6e362d2c11e532010ff2eec69cd6d6b0ee7 /src
parent7c80556ae4257ccc196428b7ef6d6abf170a4288 (diff)
Remove unneeded parameters
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'src')
-rw-r--r--src/store/account.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/store/account.js b/src/store/account.js
index 01f59336..43ea3b26 100644
--- a/src/store/account.js
+++ b/src/store/account.js
@@ -201,7 +201,7 @@ const actions = {
commit('setCurrentAccount', account)
dispatch('fetchAccountInfo', account)
},
- async followAccount(context, { currentAccount, accountToFollow }) {
+ async followAccount(context, { accountToFollow }) {
try {
const response = await axios.put(generateUrl('/apps/social/api/v1/current/follow?account=' + accountToFollow))
if (response.data.status === -1) {
@@ -214,7 +214,7 @@ const actions = {
logger.error(`Failed to follow user ${accountToFollow}`, { error })
}
},
- async unfollowAccount(context, { currentAccount, accountToUnfollow }) {
+ async unfollowAccount(context, { accountToUnfollow }) {
try {
const response = await axios.delete(generateUrl('/apps/social/api/v1/current/follow?account=' + accountToUnfollow))
if (response.data.status === -1) {