summaryrefslogtreecommitdiffstats
path: root/src/store
diff options
context:
space:
mode:
authorCyrille Bollu <cyrpub@bollu.be>2019-10-02 17:06:02 +0200
committerCyrille Bollu <cyrpub@bollu.be>2019-10-02 17:06:02 +0200
commitd1f84b78e8de993c4424b7e8a13d07d1daf697fe (patch)
tree661f320ad4b4517ef71f83032108bc8d7248f77e /src/store
parent1138191342afdccfb02563dda6be863377dec369 (diff)
FIX: Do not store current user in followers/following lists.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Diffstat (limited to 'src/store')
-rw-r--r--src/store/account.js14
1 files 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,