Explorar o código

Add identicon fallback to avatar url

Jordi Boggiano %!s(int64=8) %!d(string=hai) anos
pai
achega
29febe63d1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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';
     }
 }