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

option to show nothing #131

Open
benrlodge opened this issue Oct 1, 2016 · 3 comments
Open

option to show nothing #131

benrlodge opened this issue Oct 1, 2016 · 3 comments

Comments

@benrlodge
Copy link

Cool component. It would be cool if there was a prop that chooses not to display any image if the person doesn't have a gravatar.

@KyleAMathews
Copy link
Owner

This would be something the gravatar service itself supports. I haven't looked at the API in a while but if you look and something is supported for this, would happily accept a PR.

@Sicria
Copy link

Sicria commented Nov 28, 2017

This is an old issue but if you set the default prop to blank it accomplishes what you're after.

@IsenrichO
Copy link

@Sicria That's a cool workaround, but I don't think that addresses the underlying issue. Based on the original issue's description, we would only want to set default to blank if the user doesn't have a Gravatar. Do we have a way of detecting if the component is falling back to the default Gravatar?

I have the same issue. In my case, I set default to mm but also pass the user's email. What this means is that we have actual Gravatar user images for those who've set their own images reflecting that email. However, I'd prefer to render my own component if the user hasn't set their own Gravatar (and not the mystery man mm image).

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

No branches or pull requests

4 participants