From d1f84b78e8de993c4424b7e8a13d07d1daf697fe Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Wed, 2 Oct 2019 17:06:02 +0200 Subject: [PATCH] FIX: Do not store current user in followers/following lists. Signed-off-by: Cyrille Bollu --- src/store/account.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/store/account.js b/src/store/account.js index e54d8c82..0c27f40e 100644 --- a/src/store/account.js +++ b/src/store/account.js @@ -45,11 +45,13 @@ const mutations = { let users = [] for (var index in data) { const actor = data[index].actor_info - users.push(actor.id) - addAccount(state, { - actorId: actor.id, - data: actor - }) + if (typeof actor !== 'undefined' && account !== actor.account) { + users.push(actor.id) + addAccount(state, { + actorId: actor.id, + data: actor + }) + } } Vue.set(state.accounts[_getActorIdForAccount(account)], 'followersList', users) }, @@ -57,7 +59,7 @@ const mutations = { let users = [] for (var index in data) { const actor = data[index].actor_info - if (typeof actor !== 'undefined') { + if (typeof actor !== 'undefined' && account !== actor.account) { users.push(actor.id) addAccount(state, { actorId: actor.id,