forked from GNUsocial/gnu-social
Revert "Use gravatar as a fallback for missing files"
This reverts commit 52493a9a2b
.
This commit is contained in:
parent
52493a9a2b
commit
75f0429961
@ -32,8 +32,7 @@ class GravatarPlugin extends Plugin
|
||||
{
|
||||
function onEndProfileGetAvatar($profile, $size, &$avatar)
|
||||
{
|
||||
if (empty($avatar) ||
|
||||
(!empty($avatar->filename) && !file_exists(Avatar::path($avatar->filename)))) {
|
||||
if (empty($avatar)) {
|
||||
$user = $profile->getUser();
|
||||
if (!empty($user) && !empty($user->email)) {
|
||||
// Fake one!
|
||||
|
Loading…
Reference in New Issue
Block a user