]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Use gravatar as a fallback for missing files"
authorEvan Prodromou <evan@status.net>
Thu, 14 Apr 2011 17:06:23 +0000 (13:06 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 14 Apr 2011 17:06:23 +0000 (13:06 -0400)
This reverts commit 52493a9a2babd7e3655137e04f33df114e7dd5fd.

plugins/Gravatar/GravatarPlugin.php

index 05af683a690a000ee0c64de85c432b1e131f2d31..bdb73f3433b06f966e21a6048f68773d4fe26cda 100644 (file)
@@ -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!