docs: fix website home testimonials broken image URLs #8443
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pre-flight checklist
Motivation
As @slorber mentioned in issue #8436 , we can fix the broken link issue by adding a new prop
githubUsername
and GitHub has a defined image URL, which will always work but that will be passed as a fallback URL. The priority image will be fetched from the user's Twitter account using unavatar.io and the fallback would be the GitHub profile picture in case twitter image fails to load.Test Plan
I tried adding a broken twitter account username in the
handle
parameter and it still loads the image from GitHub's profile picture.Test links
Deploy preview: https://deploy-preview-8443--docusaurus-2.netlify.app/
Related issues/PRs
#8436