]> 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 78c7c4a118ff7385bc96b5d3d27418fac2a08aa5..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()
@@ -91,4 +85,4 @@ class DefaultProfileBlock extends AccountProfileBlock
     {
         return array();
     }
-}
\ No newline at end of file
+}