forked from AkkomaGang/akkoma-fe
fix inconsistencies within who_to_follow_panel
This commit is contained in:
parent
6fa993c122
commit
ed2393c970
1 changed files with 7 additions and 7 deletions
|
@ -24,8 +24,8 @@ function showWhoToFollow (panel, reply) {
|
|||
function getWhoToFollow (panel) {
|
||||
var credentials = panel.$store.state.users.currentUser.credentials
|
||||
if (credentials) {
|
||||
panel.usersToFollow.forEach((_, index) => {
|
||||
panel.usersToFollow[index].name = 'Loading...'
|
||||
panel.usersToFollow.forEach(toFollow => {
|
||||
toFollow.name = 'Loading...'
|
||||
})
|
||||
apiService.suggestions({credentials: credentials})
|
||||
.then((reply) => {
|
||||
|
@ -49,10 +49,10 @@ const WhoToFollowPanel = {
|
|||
return this.$store.state.users.currentUser.screen_name
|
||||
},
|
||||
moreUrl: function () {
|
||||
let host = window.location.hostname
|
||||
let user = this.user
|
||||
let suggestionsWeb = this.$store.state.instance.suggestionsWeb
|
||||
let url = suggestionsWeb.replace(/{{host}}/g, encodeURIComponent(host))
|
||||
const host = window.location.hostname
|
||||
const user = this.user
|
||||
const suggestionsWeb = this.$store.state.instance.suggestionsWeb
|
||||
const url = suggestionsWeb.replace(/{{host}}/g, encodeURIComponent(host))
|
||||
.replace(/{{user}}/g, encodeURIComponent(user))
|
||||
return url
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue