From f72c8eeb9233e27600e5691df816146ad7ade6a4 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 6 Apr 2023 16:31:14 +0200 Subject: [PATCH] Fix ressource urls in profile Signed-off-by: Louis Chemineau --- src/views/ProfilePageIntegration.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/ProfilePageIntegration.vue b/src/views/ProfilePageIntegration.vue index ac7d1ef2..8771a19e 100644 --- a/src/views/ProfilePageIntegration.vue +++ b/src/views/ProfilePageIntegration.vue @@ -42,16 +42,14 @@ export default { beforeMount() { const uid = this.userId - axios.get(generateUrl(`apps/social/api/v1/account/${uid}/info`)).then((response) => { - this.accountInfo = response.data.result.account + axios.get(generateUrl(`apps/social/api/v1/global/account/info?account=${uid}`)).then(({ data }) => { + this.accountInfo = data logger.log(this.accountInfo) }) - const since = Math.floor(Date.now() / 1000) + 1 - - axios.get(generateUrl(`apps/social/api/v1/account/${uid}/stream?limit=25&since=${since}`)).then(({ data }) => { + axios.get(generateUrl(`apps/social/api/v1/accounts/${uid}/statuses`)).then(({ data }) => { + this.timeline = data logger.log(this.timeline) - this.timeline = data.result }) }, }