Преглед на файлове

Add identicon fallback to avatar url

Jordi Boggiano преди 8 години
родител
ревизия
29febe63d1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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';
     }
 }