First time here? Check out the FAQ!
1

How to use an alternative gravatar server?

We have a local Confluence with "Confluence Avatar Server" installed.

This works exactly like gravatar but serves the avatars configured in confluence: With gravatar you use an URL like "htttp://www.gravatar.com/avatar/SOMEHASH" - With Confluence you use a URL like "htttps://example.org/rest/cas/1.0/avatar/server/SOMEHASH". The hash is computed exactly the same way.

Is there an easy way to tell Askbot to use the avatars from confluence instead of gravatar?

A quick scan through the source shows multiple occurrences of "gravatar.com/avatar". Would it be possible to extract the ""htttp://www.gravatar.com/avatar/" part into a variable and make it configurable?

This way I could simply set it to "htttps://example.org/rest/cas/1.0/avatar/server/" to get the avatars from confluence.

michas's avatar
46
michas
asked 2014-02-28 12:50:00 -0600, updated 2014-02-28 14:28:29 -0600
edit flag offensive 0 remove flag close merge delete

Comments

Sorry for the "htttp" part. I don't have enough karma to write it correctly.

michas's avatar michas (2014-02-28 14:29:25 -0600) edit

Can anyone of your users/admins suggest an implementation and make a pull request?

Evgeny's avatar Evgeny (2014-02-28 14:38:06 -0600) edit

pull request sent.

michas's avatar michas (2014-03-01 10:54:31 -0600) edit
add a comment see more comments

1 Answer

0

Currently the gravatar URLs are hardcoded and there is no support for alternatives. What is the form of the avatar URL and what is the method to calculate the avatar address in Confluence?

Evgeny's avatar
13.2k
Evgeny
answered 2014-02-28 13:32:07 -0600, updated 2014-02-28 13:58:26 -0600
edit flag offensive 0 remove flag delete link

Comments

I am currently using the avatars from http://gravatar.com, but I would like to use the avatars served by our local Confluence. The URLs are constructed the same way. See the updated question.

michas's avatar michas (2014-02-28 13:54:12 -0600) edit
add a comment see more comments