]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/defaultprofileblock.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / lib / defaultprofileblock.php
index b8af14ac211b00f4e1967c093cff346d26c1d881..f451aa01883dfc618426804ccc34e0773b4d7e6b 100644 (file)
@@ -63,13 +63,7 @@ class DefaultProfileBlock extends AccountProfileBlock
 
     function avatar()
     {
-        $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
-        if (empty($avatar)) {
-            $avatar = $this->profile->getAvatar(73);
-        }
-        return (!empty($avatar)) ? 
-            $avatar->displayUrl() : 
-            Avatar::defaultImage(AVATAR_STREAM_SIZE);
+        return $this->profile->avatarUrl(AVATAR_STREAM_SIZE);
     }
 
     function location()
@@ -86,4 +80,9 @@ class DefaultProfileBlock extends AccountProfileBlock
     {
         return null;
     }
-}
\ No newline at end of file
+
+    function otherProfiles()
+    {
+        return array();
+    }
+}