From fba239855cfa6e69cee552a8c2154e48ccde1a31 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 10 Apr 2016 22:14:03 +0200 Subject: [PATCH] server/users: change default gravatar to retro --- server/szurubooru/api/user_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/api/user_api.py b/server/szurubooru/api/user_api.py index 08f5eb6..42fbade 100644 --- a/server/szurubooru/api/user_api.py +++ b/server/szurubooru/api/user_api.py @@ -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' % (