Switch from Gravatar to HTML/CSS letters for no-avatar users

I would like to keep gravatar, but with a twist.

  • On account creation we copy the gravatar avatar locally (if it exists - identicon is optional - we already have code that does this)
  • On the user page we allow people to update avatar from gravatar (in case they want to)

This solves some real big issues we have

  • We have no way of telling if someone has an avatar or not
  • We are performing way too many web requests to gravatar (1 every 5 minutes per user per gravatar)
    • We are participating in Gravatar’s global surveillance network. They know which sites I am visiting and what topics I am interested in, this is none of their business.

This simplification also helps us get rid of this business, which I am not a fan of: https://github.com/discourse/discourse/blob/master/app/jobs/scheduled/detect_avatars.rb

@zogstrip @codinghorror thoughts?

1 个赞