forked from AkkomaGang/akkoma-fe
Set blockIds and muteIds to the currentUser state only
This commit is contained in:
parent
e91a94ff9c
commit
1fd9a1c7c0
2 changed files with 3 additions and 3 deletions
|
@ -303,6 +303,8 @@ const users = {
|
||||||
const user = data
|
const user = data
|
||||||
// user.credentials = userCredentials
|
// user.credentials = userCredentials
|
||||||
user.credentials = accessToken
|
user.credentials = accessToken
|
||||||
|
user.blockIds = []
|
||||||
|
user.muteIds = []
|
||||||
commit('setCurrentUser', user)
|
commit('setCurrentUser', user)
|
||||||
commit('addNewUsers', [user])
|
commit('addNewUsers', [user])
|
||||||
|
|
||||||
|
@ -319,7 +321,7 @@ const users = {
|
||||||
// Start getting fresh posts.
|
// Start getting fresh posts.
|
||||||
store.dispatch('startFetching', { timeline: 'friends' })
|
store.dispatch('startFetching', { timeline: 'friends' })
|
||||||
|
|
||||||
// Get user mutes and follower info
|
// Get user mutes
|
||||||
store.dispatch('fetchMutes')
|
store.dispatch('fetchMutes')
|
||||||
|
|
||||||
// Fetch our friends
|
// Fetch our friends
|
||||||
|
|
|
@ -120,8 +120,6 @@ export const parseUser = (data) => {
|
||||||
if (data.pleroma) {
|
if (data.pleroma) {
|
||||||
output.follow_request_count = data.pleroma.follow_request_count
|
output.follow_request_count = data.pleroma.follow_request_count
|
||||||
}
|
}
|
||||||
output.blockIds = []
|
|
||||||
output.muteIds = []
|
|
||||||
|
|
||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue