aboutsummaryrefslogtreecommitdiff
path: root/src/components/who_to_follow/who_to_follow.js
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-10-08 16:49:03 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-10-08 16:49:03 +0300
commit541a71c3a561e74d273c0b210bde70f4e0b31681 (patch)
tree5a06decc988fb422c0431b4df270939d204fcc00 /src/components/who_to_follow/who_to_follow.js
parenta26d55013779d7b41e4a4aa0dc2477a6926116ae (diff)
parent122323f35c32a4f12a345a8b3f163e9318f5dea3 (diff)
Merge branch 'develop' into feature/following_reblogs
Diffstat (limited to 'src/components/who_to_follow/who_to_follow.js')
-rw-r--r--src/components/who_to_follow/who_to_follow.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/components/who_to_follow/who_to_follow.js b/src/components/who_to_follow/who_to_follow.js
index 1aa3a4cd..ecd97dd7 100644
--- a/src/components/who_to_follow/who_to_follow.js
+++ b/src/components/who_to_follow/who_to_follow.js
@@ -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)
}
})
})