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

Add avatar server URL configuration support #546

Merged

Conversation

siberianlove
Copy link
Contributor

Sometimes it's useful to specify a different avatar server, like in my case, where our company has its own Gravatar-compatible service with employee avatars.

Gravatar uses an email hash to map avatars, but companies quite often have business mail with their own domains, and they have some sort of requirements for employee IDs and avatars on corporate portals and services.

@jcormier jcormier self-requested a review February 27, 2024 15:44
@jcormier jcormier self-assigned this Feb 27, 2024
@jcormier
Copy link
Collaborator

Were you able to verify the default gravatar support still works? I'm not sure how to test it.

@siberianlove
Copy link
Contributor Author

Yes it works, i tested it. You can test it with administrator rights by going to Administration > Settings > Display or using url https://your-redmine/settings?tab=display
Redmine displays current used gravatar server. And by default it will be https://gravatar.com
Also you can enable "Use Gravatar user icons" checkbox and visit any user page. Users will have avatars with this checkbox enabled. And if you specify REDMINE_AVATAR_SERVER_URL value of this env will be displayed at Administration > Settings > Display page and redmine will use this gravatar server for displaying avatars.

default one:
image

https://seccdn.libravatar.org specified in REDMINE_AVATAR_SERVER_URL:
image

@jcormier
Copy link
Collaborator

Much appreciated

@jcormier jcormier merged commit 590d949 into sameersbn:master Feb 28, 2024
1 check passed
@jcormier
Copy link
Collaborator

Do you want this cherry-picked to any previous releases?

@jcormier
Copy link
Collaborator

jcormier commented Mar 6, 2024

Released in 5.1.2

@siberianlove
Copy link
Contributor Author

Do you want this cherry-picked to any previous releases?

Released in 5.1.2

5.1.2 is enough for me, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants