server/users: change default gravatar to retro

This commit is contained in:
rr- 2016-04-10 22:14:03 +02:00
parent 6bff0a6a26
commit fba239855c

View file

@ -18,7 +18,7 @@ def _serialize_user(authenticated_user, user):
md5 = hashlib.md5()
md5.update((user.email or user.name).lower().encode('utf-8'))
digest = md5.hexdigest()
ret['avatarUrl'] = 'http://gravatar.com/avatar/%s?s=%d' % (
ret['avatarUrl'] = 'http://gravatar.com/avatar/%s?d=retro&s=%d' % (
digest, config.config['thumbnails']['avatar_width'])
else:
ret['avatarUrl'] = '%s/avatars/%s.jpg' % (