kopia lustrzana https://github.com/nextcloud/social
Fix ressource urls in profile
Signed-off-by: Louis Chemineau <louis@chmn.me>pull/1719/head
rodzic
640c12678f
commit
f72c8eeb92
|
@ -42,16 +42,14 @@ export default {
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
const uid = this.userId
|
const uid = this.userId
|
||||||
|
|
||||||
axios.get(generateUrl(`apps/social/api/v1/account/${uid}/info`)).then((response) => {
|
axios.get(generateUrl(`apps/social/api/v1/global/account/info?account=${uid}`)).then(({ data }) => {
|
||||||
this.accountInfo = response.data.result.account
|
this.accountInfo = data
|
||||||
logger.log(this.accountInfo)
|
logger.log(this.accountInfo)
|
||||||
})
|
})
|
||||||
|
|
||||||
const since = Math.floor(Date.now() / 1000) + 1
|
axios.get(generateUrl(`apps/social/api/v1/accounts/${uid}/statuses`)).then(({ data }) => {
|
||||||
|
this.timeline = data
|
||||||
axios.get(generateUrl(`apps/social/api/v1/account/${uid}/stream?limit=25&since=${since}`)).then(({ data }) => {
|
|
||||||
logger.log(this.timeline)
|
logger.log(this.timeline)
|
||||||
this.timeline = data.result
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue