summaryrefslogtreecommitdiffstats
path: root/src/store
diff options
context:
space:
mode:
authorCyrille Bollu <cyrpub@bollu.be>2019-09-17 17:10:08 +0200
committerCyrille Bollu <cyrpub@bollu.be>2019-09-17 17:10:08 +0200
commit128438e705d87550031e6207997768b505306612 (patch)
tree95b5f245d8ff9d53542884f888e48654a7bbb27d /src/store
parenteefa99f2879e29846446cc4e945e71771b0fd8dc (diff)
Profiles view is now able to load an account whose domain part is
a host-meta of the real domain. Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
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}`)
})