X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fdefaultprofileblock.php;h=f451aa01883dfc618426804ccc34e0773b4d7e6b;hb=9ea57e5cb2622a8fc86c0cdd2cb6e73c0219fa51;hp=78c7c4a118ff7385bc96b5d3d27418fac2a08aa5;hpb=f79aec36feaa4760201a7e88d5b31513a3c458ba;p=quix0rs-gnu-social.git diff --git a/lib/defaultprofileblock.php b/lib/defaultprofileblock.php index 78c7c4a118..f451aa0188 100644 --- a/lib/defaultprofileblock.php +++ b/lib/defaultprofileblock.php @@ -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 +}