using internal link to users
This commit is contained in:
parent
96426425b8
commit
caad818009
|
@ -28,14 +28,35 @@ function showWhoToFollow (panel, users, aHost, aUser) {
|
||||||
panel.img1 = img
|
panel.img1 = img
|
||||||
panel.link1 = link
|
panel.link1 = link
|
||||||
panel.name1 = name
|
panel.name1 = name
|
||||||
|
this.$store.state.api.backendInteractor.externalProfile(name)
|
||||||
|
.then((externalUser) => {
|
||||||
|
if (!externalUser.error) {
|
||||||
|
this.$store.commit('addNewUsers', [externalUser])
|
||||||
|
panel.link1 = 'https://' + host + '/users/' + externalUser.id
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (index === 1) {
|
} else if (index === 1) {
|
||||||
panel.img2 = img
|
panel.img2 = img
|
||||||
panel.link2 = link
|
panel.link2 = link
|
||||||
panel.name2 = name
|
panel.name2 = name
|
||||||
|
this.$store.state.api.backendInteractor.externalProfile(name)
|
||||||
|
.then((externalUser) => {
|
||||||
|
if (!externalUser.error) {
|
||||||
|
this.$store.commit('addNewUsers', [externalUser])
|
||||||
|
panel.link2 = 'https://' + host + '/users/' + externalUser.id
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (index === 2) {
|
} else if (index === 2) {
|
||||||
panel.img3 = img
|
panel.img3 = img
|
||||||
panel.link3 = link
|
panel.link3 = link
|
||||||
panel.name3 = name
|
panel.name3 = name
|
||||||
|
this.$store.state.api.backendInteractor.externalProfile(name)
|
||||||
|
.then((externalUser) => {
|
||||||
|
if (!externalUser.error) {
|
||||||
|
this.$store.commit('addNewUsers', [externalUser])
|
||||||
|
panel.link3 = 'https://' + host + '/users/' + externalUser.id
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
index = index + 1
|
index = index + 1
|
||||||
if (index > 2) {
|
if (index > 2) {
|
||||||
|
|
Loading…
Reference in New Issue