From 1fd9a1c7c0f9efb3660af44f9a8fa8722e6819cc Mon Sep 17 00:00:00 2001
From: taehoon
Date: Wed, 13 Feb 2019 22:14:46 -0500
Subject: [PATCH] Set blockIds and muteIds to the currentUser state only
---
src/modules/users.js | 4 +++-
src/services/entity_normalizer/entity_normalizer.service.js | 2 --
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/modules/users.js b/src/modules/users.js
index 71201a77bb..5921370da3 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -303,6 +303,8 @@ const users = {
const user = data
// user.credentials = userCredentials
user.credentials = accessToken
+ user.blockIds = []
+ user.muteIds = []
commit('setCurrentUser', user)
commit('addNewUsers', [user])
@@ -319,7 +321,7 @@ const users = {
// Start getting fresh posts.
store.dispatch('startFetching', { timeline: 'friends' })
- // Get user mutes and follower info
+ // Get user mutes
store.dispatch('fetchMutes')
// Fetch our friends
diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js
index 49c838111a..d20ce77f77 100644
--- a/src/services/entity_normalizer/entity_normalizer.service.js
+++ b/src/services/entity_normalizer/entity_normalizer.service.js
@@ -120,8 +120,6 @@ export const parseUser = (data) => {
if (data.pleroma) {
output.follow_request_count = data.pleroma.follow_request_count
}
- output.blockIds = []
- output.muteIds = []
return output
}