diff options
author | Louis Chemineau <louis@chmn.me> | 2023-04-06 16:31:14 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2023-04-06 16:31:14 +0200 |
commit | f72c8eeb9233e27600e5691df816146ad7ade6a4 (patch) | |
tree | c435ca63c9e67ceeea3452bdd2ee3b43c55e3c70 /src | |
parent | 640c12678f160b7890fbbef161f8cf0c31a61c0e (diff) |
Fix ressource urls in profile
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'src')
-rw-r--r-- | src/views/ProfilePageIntegration.vue | 10 |
1 files 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 }) }, } |