forked from AkkomaGang/akkoma-fe
Merge branch 'fix-user-avatar-fallback' into 'develop'
Fix broken user avatar fallback logic See merge request pleroma/pleroma-fe!933
This commit is contained in:
commit
814ba88f1c
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ const UserAvatar = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
imgSrc () {
|
imgSrc () {
|
||||||
return this.showPlaceholder ? '/images/avi.png' : this.src
|
return this.showPlaceholder ? '/images/avi.png' : this.user.profile_image_url_original
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class="avatar"
|
class="avatar"
|
||||||
:alt="user.screen_name"
|
:alt="user.screen_name"
|
||||||
:title="user.screen_name"
|
:title="user.screen_name"
|
||||||
:src="user.profile_image_url_original"
|
:src="imgSrc"
|
||||||
:class="{ 'avatar-compact': compact, 'better-shadow': betterShadow }"
|
:class="{ 'avatar-compact': compact, 'better-shadow': betterShadow }"
|
||||||
:image-load-error="imageLoadError"
|
:image-load-error="imageLoadError"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue