From e9f9957a6d0cb5718f96967825a12a67cadf1466 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Mon, 17 Apr 2023 18:26:51 +0200 Subject: [PATCH 01/12] Remove unneeded parameters Signed-off-by: Louis Chemineau --- src/store/account.js | 4 ++-- 1 file 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) { From c7a1189ee040fdda840f83620c4f3394974e8a5a Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 20 Apr 2023 10:06:16 +0200 Subject: [PATCH 02/12] Restore follow button in user lists Signed-off-by: Louis Chemineau --- src/components/FollowButton.vue | 4 ---- src/components/ProfileInfo.vue | 2 +- src/components/UserEntry.vue | 9 ++++++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/FollowButton.vue b/src/components/FollowButton.vue index 3390c1fc..01b17c0e 100644 --- a/src/components/FollowButton.vue +++ b/src/components/FollowButton.vue @@ -72,10 +72,6 @@ export default { currentUser, ], props: { - account: { - type: String, - default: '', - }, uid: { type: String, default: '', diff --git a/src/components/ProfileInfo.vue b/src/components/ProfileInfo.vue index ed2e384b..c40d1452 100644 --- a/src/components/ProfileInfo.vue +++ b/src/components/ProfileInfo.vue @@ -59,7 +59,7 @@