Project Information
- Repository: https://github.com/nirvanaitsolutions/swapsteem
- Project Name: SwapSteem
Expected behavior
A user's profile image should always be displayed correctly when viewing your wallet.
Actual behavior
When viewing a users profile on the profile page, the profile image doesn't display correctly. It shows a broken image.
How to reproduce
- Go to your wallet.
- Note that your profile image doesn't load.
I suspect this isn't happening to every user, this may not be easy to replicate.
Video/Screenshots
The following screenshot provides additional clarity surrounding the issue:
Issue & Resolution
Currently, profile images are pulled from a user's json_metadata as seen in the following code:
https://github.com/nirvanaitsolutions/swapsteem/blob/master/src/app/profile/profile.component.ts
In order to resolve this issue and overall reduce the risk of error by providing an easy solution for fallback. The profile image should no longer be pulled from the json_metadata and overall can be simplified by using the following URL to load a user's profile image.
https://steemitimages.com/u/<username>/avatar
Simple replace <username> with tobias-g (no @ required) to view my profile image.
Enviroment
- Browser: Google Chrome (Version 71.0.3578.98 (Official Build) (64-bit))
- Device: MacBook Pro (Retina, 15-inch, Late 2013)
- Operating system: MacOS Mojave Version 10.14.1 (18B75)
GitHub Account
A link to my GitHub account can be found here:
This issue was reported on GitHub here: