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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
michas's avatar
46
michas
asked 11 years ago, updated 11 years ago

Comments

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

michas's avatar michas (11 years ago)

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

Evgeny's avatar Evgeny (11 years ago)

pull request sent.

michas's avatar michas (11 years ago)
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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago, updated 11 years ago
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 (11 years ago)
see more comments