X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitimelinehome.php;h=7ef3da79f0de65c11471623fd693d392c5dcfd31;hb=b0dfc70a54e5e184023ed982dfaf5439041e9708;hp=1ca74b208e7bc261780d2237d4a140282c640af6;hpb=a7e748479c273ddecfe9fdbd72670fe1abe766bf;p=quix0rs-gnu-social.git diff --git a/actions/apitimelinehome.php b/actions/apitimelinehome.php index 1ca74b208e..7ef3da79f0 100644 --- a/actions/apitimelinehome.php +++ b/actions/apitimelinehome.php @@ -105,7 +105,6 @@ class ApiTimelineHomeAction extends ApiBareAuthAction function showTimeline() { $profile = $this->user->getProfile(); - $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); $sitename = common_config('site', 'name'); // TRANS: Timeline title for user and friends. %s is a user nickname. $title = sprintf(_("%s and friends"), $this->user->nickname); @@ -118,17 +117,11 @@ class ApiTimelineHomeAction extends ApiBareAuthAction $this->user->nickname, $sitename ); - $link = common_local_url( - 'all', - array('nickname' => $this->user->nickname) - ); - + $logo = $profile->avatarUrl(AVATAR_PROFILE_SIZE); + $link = common_local_url('all', + array('nickname' => $this->user->nickname)); $self = $this->getSelfUri(); - $logo = (!empty($avatar)) - ? $avatar->displayUrl() - : Avatar::defaultImage(AVATAR_PROFILE_SIZE); - switch($this->format) { case 'xml': $this->showXmlTimeline($this->notices);