diff options
| author | lain <lain@soykaf.club> | 2020-07-08 10:11:17 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-07-08 10:11:17 +0000 |
| commit | 4f96418143984e23db80e10b5db43779b72118a9 (patch) | |
| tree | 9da38b1dc0af8946f32c8d7e10d3f240f73de93a /src/components/who_to_follow_panel | |
| parent | 7206fee4372eba5bb05db9eb90100aee95003962 (diff) | |
| parent | eea002e6f5e3da4c4415d45cffd9cff64fd6c052 (diff) | |
Merge branch 'wyatt777/pleroma-fe-issue-353' into 'develop'
Allow remove of banner, avatar images issue #353 v2
See merge request pleroma/pleroma-fe!1156
Diffstat (limited to 'src/components/who_to_follow_panel')
| -rw-r--r-- | src/components/who_to_follow_panel/who_to_follow_panel.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/components/who_to_follow_panel/who_to_follow_panel.js b/src/components/who_to_follow_panel/who_to_follow_panel.js index dcb56106..818e8bd5 100644 --- a/src/components/who_to_follow_panel/who_to_follow_panel.js +++ b/src/components/who_to_follow_panel/who_to_follow_panel.js @@ -7,7 +7,7 @@ function showWhoToFollow (panel, reply) { panel.usersToFollow.forEach((toFollow, index) => { let user = shuffled[index] - let img = user.avatar || '/images/avi.png' + let img = user.avatar || this.$store.state.instance.defaultAvatar let name = user.acct toFollow.img = img @@ -38,13 +38,7 @@ function getWhoToFollow (panel) { const WhoToFollowPanel = { data: () => ({ - usersToFollow: new Array(3).fill().map(x => ( - { - img: '/images/avi.png', - name: '', - id: 0 - } - )) + usersToFollow: [] }), computed: { user: function () { @@ -68,6 +62,13 @@ const WhoToFollowPanel = { }, mounted: function () { + this.usersToFollow = new Array(3).fill().map(x => ( + { + img: this.$store.state.instance.defaultAvatar, + name: '', + id: 0 + } + )) if (this.suggestionsEnabled) { getWhoToFollow(this) } |
