Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Customizable Gravatar fallback #263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cougrimes
Copy link

Currently, Gravatar has a hardcoded fallback to the d=404 parameter, meaning that any Gravatar images that can't be resolved will result in a 404 hit. As there may be times Gravatar is not expected to have 100% coverage, the ability to pass custom fallback parameters for default images makes sense as a feature extension.

This code is intended to let onError override any behavior defined by the fallback prop as to minimize issues.

chore: Made Gravatar fallback parameter dynamic so it can be assigned as appropriate. Now defaults to blank instead of 404.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant