biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -3,20 +3,21 @@ import FollowCard from '../follow_card/follow_card.vue'
|
|||
|
||||
const WhoToFollow = {
|
||||
components: {
|
||||
FollowCard
|
||||
FollowCard,
|
||||
},
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
users: []
|
||||
users: [],
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
mounted() {
|
||||
this.getWhoToFollow()
|
||||
},
|
||||
methods: {
|
||||
showWhoToFollow (reply) {
|
||||
showWhoToFollow(reply) {
|
||||
reply.forEach((i) => {
|
||||
this.$store.state.api.backendInteractor.fetchUser({ id: i.acct })
|
||||
this.$store.state.api.backendInteractor
|
||||
.fetchUser({ id: i.acct })
|
||||
.then((externalUser) => {
|
||||
if (!externalUser.error) {
|
||||
this.$store.commit('addNewUsers', [externalUser])
|
||||
|
|
@ -25,16 +26,15 @@ const WhoToFollow = {
|
|||
})
|
||||
})
|
||||
},
|
||||
getWhoToFollow () {
|
||||
getWhoToFollow() {
|
||||
const credentials = this.$store.state.users.currentUser.credentials
|
||||
if (credentials) {
|
||||
apiService.suggestions({ credentials })
|
||||
.then((reply) => {
|
||||
this.showWhoToFollow(reply)
|
||||
})
|
||||
apiService.suggestions({ credentials }).then((reply) => {
|
||||
this.showWhoToFollow(reply)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default WhoToFollow
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue