Merge branch '497' into 'develop'

Stop fetching user relationship when user is unauthorized

Closes #497

See merge request pleroma/pleroma-fe!759
environments/review-dokku-dkhv2e/deployments/124
HJ 6 years ago
commit 61d04b8823

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

Loading…
Cancel
Save