Skip to content
Snippets Groups Projects

Stop fetching user relationship when user is unauthorized

Merged Tae Hoon requested to merge tae/pleroma-fe:497 into develop
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -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()
Loading