From 128438e705d87550031e6207997768b505306612 Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Tue, 17 Sep 2019 17:10:08 +0200 Subject: 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 --- src/store/account.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/store') 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}`) }) -- cgit v1.2.3