server/users: change default gravatar to retro
This commit is contained in:
parent
6bff0a6a26
commit
fba239855c
1 changed files with 1 additions and 1 deletions
|
@ -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' % (
|
||||
|
|
Loading…
Reference in a new issue