summaryrefslogtreecommitdiffstats
path: root/src/store
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-09-26 12:32:49 +0200
committerGitHub <noreply@github.com>2019-09-26 12:32:49 +0200
commite0e26d9a4971406c9e68c94a8c7800a31dc73fcd (patch)
tree2b3ecee914b7b76a21e62686a36728dbc1a038f3 /src/store
parentf5c43764858b484ad6b91b7575c7bfcb5d568bab (diff)
parent2f7683a0aed54b45d304c324314bf36ad1f6916a (diff)
Merge pull request #746 from nextcloud/bugfix/745/social-address-on-local-account
check social address during local actor
Diffstat (limited to 'src/store')
-rw-r--r--src/store/account.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/store/account.js b/src/store/account.js
index 76ea4679..e54d8c82 100644
--- a/src/store/account.js
+++ b/src/store/account.js
@@ -108,13 +108,15 @@ const actions = {
fetchAccountInfo(context, account) {
return axios.get(OC.generateUrl(`apps/social/api/v1/global/account/info?account=${account}`)).then((response) => {
context.commit('addAccount', { actorId: response.data.result.account.id, data: response.data.result.account })
+ return response.data.result.account
}).catch(() => {
OC.Notification.showTemporary(`Failed to load account details ${account}`)
})
},
fetchPublicAccountInfo(context, uid) {
- axios.get(OC.generateUrl(`apps/social/api/v1/account/${uid}/info`)).then((response) => {
+ return axios.get(OC.generateUrl(`apps/social/api/v1/account/${uid}/info`)).then((response) => {
context.commit('addAccount', { actorId: response.data.result.account.id, data: response.data.result.account })
+ return response.data.result.account
}).catch(() => {
OC.Notification.showTemporary(`Failed to load account details ${uid}`)
})