Skip to content
Snippets Groups Projects
Commit aadd36f3 authored by kaniini's avatar kaniini
Browse files

Merge branch 'refactor-who-to-follow' into 'develop'

Small refactoring in who to follow page

See merge request !932
parents 9ef0e65b bc17839e
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!932Small refactoring in who to follow page
Pipeline #17729 passed
......@@ -16,21 +16,11 @@ const WhoToFollow = {
methods: {
showWhoToFollow (reply) {
reply.forEach((i, index) => {
const user = {
id: 0,
name: i.display_name,
screen_name: i.acct,
profile_image_url: i.avatar || '/images/avi.png',
profile_image_url_original: i.avatar || '/images/avi.png',
statusnet_profile_url: i.url
}
this.users.push(user)
this.$store.state.api.backendInteractor.fetchUser({ id: user.screen_name })
this.$store.state.api.backendInteractor.fetchUser({ id: i.acct })
.then((externalUser) => {
if (!externalUser.error) {
this.$store.commit('addNewUsers', [externalUser])
user.id = externalUser.id
this.users.push(externalUser)
}
})
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment