1
0
Fork 0
forked from srxl/akkoma-fe

Merge branch '497' into 'develop'

Stop fetching user relationship when user is unauthorized

Closes #497

See merge request pleroma/pleroma-fe!759
This commit is contained in:
HJ 2019-04-18 06:16:36 +00:00
commit 61d04b8823

View file

@ -224,8 +224,10 @@ const users = {
})
},
fetchUserRelationship (store, id) {
return store.rootState.api.backendInteractor.fetchUserRelationship({ id })
.then((relationships) => store.commit('updateUserRelationship', relationships))
if (store.state.currentUser) {
store.rootState.api.backendInteractor.fetchUserRelationship({ id })
.then((relationships) => store.commit('updateUserRelationship', relationships))
}
},
fetchBlocks (store) {
return store.rootState.api.backendInteractor.fetchBlocks()