biome format --write

This commit is contained in:
Henry Jameson 2026-01-06 16:22:52 +02:00
commit 9262e803ec
415 changed files with 54076 additions and 17419 deletions

View file

@ -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