New job (default off) to detect whether users have uploaded custom avatars by contacting Gravatar.

This commit is contained in:
Robin Ward
2013-09-11 15:14:18 -04:00
parent fcff4e80d1
commit 06ea8140aa
3 changed files with 33 additions and 0 deletions

View File

@ -254,6 +254,9 @@ class SiteSetting < ActiveRecord::Base
client_setting(:allow_uploaded_avatars, true)
client_setting(:allow_animated_avatars, false)
setting(:detect_custom_avatars, false)
setting(:max_daily_gravatar_crawls, 500)
def self.generate_api_key!
self.api_key = SecureRandom.hex(32)
end