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

Use Gravatar profile pictures if no picture is set on the Requirements Bazaar or if it does not exist #499

Open
BenediktHensen opened this issue Jul 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@BenediktHensen
Copy link
Member

Is your feature request related to a problem? Please describe.
Since most profile pictures on Requirements Bazaar are currently broken, it might be a good idea to directly query Gravatar for the user's profile picture so that we do not just get default avatar images everywhere.

Describe the solution you'd like
When querying the profile picture, there should be a fallback order for the displayed image:

  1. Check if the picture provided by the Requirements Bazaar is set and whether it exists.
  2. Check Gravatar based on the mail address of the profile and get the profile picture from there.
  3. Show the default avatar picture that VIAProMa has if none of the above solutions yielded a picture.

Additional context
To get a Gravatar image, we need to convert the mail address to a hash using MD5. Possible pre-processing of the mail address is described here: https://de.gravatar.com/site/implement/hash/

After that, the picture can be requested, as described here: https://de.gravatar.com/site/implement/images/

@BenediktHensen BenediktHensen added the enhancement New feature or request label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant