Browse Source

Add identicon fallback to avatar url

Jordi Boggiano 8 years ago
parent
commit
29febe63d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Packagist/WebBundle/Entity/User.php

+ 1 - 1
src/Packagist/WebBundle/Entity/User.php

@@ -273,6 +273,6 @@ class User extends BaseUser
      */
     public function getGravatarUrl()
     {
-        return 'https://www.gravatar.com/avatar/'.md5(strtolower($this->getEmail()));
+        return 'https://www.gravatar.com/avatar/'.md5(strtolower($this->getEmail())).'?d=identicon';
     }
 }