Ask Your Question
1

How to use an alternative gravatar server?

asked 2014-02-28 12:50:00 -0600

michas gravatar image

updated 2014-02-28 14:28:29 -0600

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.

edit retag flag offensive close merge delete

Comments

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

michas gravatar imagemichas ( 2014-02-28 14:29:25 -0600 )edit

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

Evgeny gravatar imageEvgeny ( 2014-02-28 14:38:06 -0600 )edit

pull request sent.

michas gravatar imagemichas ( 2014-03-01 10:54:31 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-02-28 13:32:07 -0600

Evgeny gravatar image

updated 2014-02-28 13:58:26 -0600

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?

edit flag offensive delete link more

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 gravatar imagemichas ( 2014-02-28 13:54:12 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-02-28 12:50:00 -0600

Seen: 1,106 times

Last updated: Feb 28 '14