]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/accountprofileblock.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / lib / accountprofileblock.php
index c63bded46a7f5392c0c81691d39920fbb74c79f8..36f1fee27143b8bb7c7b817ab74ece0e7bb59ae0 100644 (file)
@@ -60,13 +60,7 @@ class AccountProfileBlock extends ProfileBlock
 
     function avatar()
     {
-        $avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE);
-        if (empty($avatar)) {
-            $avatar = $this->profile->getAvatar(73);
-        }
-        return (!empty($avatar)) ?
-            $avatar->displayUrl() :
-            Avatar::defaultImage(AVATAR_PROFILE_SIZE);
+        return $this->profile->avatarUrl(AVATAR_PROFILE_SIZE);
     }
 
     function name()