X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Faccountprofileblock.php;h=36f1fee27143b8bb7c7b817ab74ece0e7bb59ae0;hb=db5df642bab47734edc2c58b2317f323c39fbf2b;hp=f49c73aeab62f51448cc8cc72e810a058dfa2651;hpb=f79aec36feaa4760201a7e88d5b31513a3c458ba;p=quix0rs-gnu-social.git diff --git a/lib/accountprofileblock.php b/lib/accountprofileblock.php index f49c73aeab..36f1fee271 100644 --- a/lib/accountprofileblock.php +++ b/lib/accountprofileblock.php @@ -55,18 +55,12 @@ class AccountProfileBlock extends ProfileBlock { parent::__construct($out); $this->profile = $profile; - $this->user = User::staticGet('id', $profile->id); + $this->user = User::getKV('id', $profile->id); } 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()