First time here? Check out the FAQ!
2

how to disable requests to gravatar.com?
 

My Askbot instance is running into the private network of my company and has no authorized access to the web. An other aspect is that Credentials are managed with the internal LDAP. Even if is not critical, we do not want to create automatically records based on the emails in the gravatar database.

So, I would like to know what's the best way to disable requests to gravatar.com. Knowing that I want to keep the possibility to the user to upload the image he wants and it does not matter if the image by default is the same for all the users.

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
updated 13 years ago, updated 12 years ago

Comments

Just an aside: Generating robot avatars using http://robohash.org/ could be a useful alternative to gravatar.

Joseph's avatar Joseph (13 years ago)

We should get this done soon, someone is looking at this feature.

Evgeny's avatar Evgeny (13 years ago)
see more comments

2 Answers

1

This was solved: as admin go to "settings" ... -> "user settings" -> uncheck "use automatic avatars from gravatar.com".

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 12 years ago
link

Comments

see more comments
1

Well the matter I want to point is in the user_get_avatar_url function from models/__init__.py

In this function, we have :

            ...
            logging.critical(message)
            raise django_exceptions.ImproperlyConfigured(message)
    else:
        return self.get_gravatar_url(size)
else:
    ...

But shouldn't it be

        ...
            logging.critical(message)
            raise django_exceptions.ImproperlyConfigured(message)
    else:
        if askbot_settings.ENABLE_GRAVATAR:
            return self.get_gravatar_url(size)
        else:
            return self.get_default_avatar_url(size)
else:
    ...

in order to entirely disable requests to gravatar website?

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)
bgenevaux's avatar
201
bgenevaux
answered 12 years ago
link

Comments

Maybe, thanks I will look into this.

Evgeny's avatar Evgeny (12 years ago)
see more comments