Replace /api/externalprofile/show.json
with a MastoAPI equialent
`/api/v1/accounts/:id` supports remote nicknames since pleroma!1622
This commit is contained in:
parent
49159e6db3
commit
457290e81e
4 changed files with 2 additions and 15 deletions
|
@ -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])
|
||||
|
|
|
@ -13,7 +13,7 @@ function showWhoToFollow (panel, reply) {
|
|||
toFollow.img = img
|
||||
toFollow.name = name
|
||||
|
||||
panel.$store.state.api.backendInteractor.externalProfile(name)
|
||||
panel.$store.state.api.backendInteractor.fetchUser({ id: name })
|
||||
.then((externalUser) => {
|
||||
if (!externalUser.error) {
|
||||
panel.$store.commit('addNewUsers', [externalUser])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue