Replace /api/externalprofile/show.json with a MastoAPI equialent

`/api/v1/accounts/:id` supports remote nicknames since pleroma!1622
This commit is contained in:
rinpatch 2019-09-03 19:59:28 +03:00
parent 49159e6db3
commit 457290e81e
4 changed files with 2 additions and 15 deletions

View file

@ -26,7 +26,7 @@ const WhoToFollow = {
}
this.users.push(user)
this.$store.state.api.backendInteractor.externalProfile(user.screen_name)
this.$store.state.api.backendInteractor.fetchUser({ id: user.screen_name })
.then((externalUser) => {
if (!externalUser.error) {
this.$store.commit('addNewUsers', [externalUser])