Ask Your Question
2

how to disable requests to gravatar.com?

asked 2011-11-09 05:55:10 -0500

Samuel gravatar image Samuel flag of France
413 16 6 21

updated 2012-07-30 09:46:39 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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.

delete close flag offensive retag edit

Comments

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

Joseph ( 2011-11-16 03:30:21 -0500 )edit

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

Evgeny ( 2011-11-24 12:13:44 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-07-30 09:43:35 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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

link publish delete flag offensive edit
1

answered 2012-07-30 09:50:13 -0500

bgenevaux gravatar image bgenevaux flag of France
189 1 6 13

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?

link publish delete flag offensive edit

Comments

Maybe, thanks I will look into this.

Evgeny ( 2012-07-30 10:23:28 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2011-11-09 05:55:10 -0500

Seen: 171 times

Last updated: Jul 30 '12