From: Evan Prodromou <evan@status.net>
Date: Thu, 14 Apr 2011 17:06:23 +0000 (-0400)
Subject: Revert "Use gravatar as a fallback for missing files"
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=75f04299614468bbac9a776adebe75f296f5c920;p=quix0rs-gnu-social.git

Revert "Use gravatar as a fallback for missing files"

This reverts commit 52493a9a2babd7e3655137e04f33df114e7dd5fd.
---

diff --git a/plugins/Gravatar/GravatarPlugin.php b/plugins/Gravatar/GravatarPlugin.php
index 05af683a69..bdb73f3433 100644
--- a/plugins/Gravatar/GravatarPlugin.php
+++ b/plugins/Gravatar/GravatarPlugin.php
@@ -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!