X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fapitimelinehome.php;h=7ef3da79f0de65c11471623fd693d392c5dcfd31;hb=cd6fa512ac0d382871384a9c7604abd8a7ed0566;hp=22c6cc5f944b6f3ee481e479fca84d1bcea63b84;hpb=c11bc8a9ba4a1c5c751052b46983bdc773112a5e;p=quix0rs-gnu-social.git diff --git a/actions/apitimelinehome.php b/actions/apitimelinehome.php index 22c6cc5f94..7ef3da79f0 100644 --- a/actions/apitimelinehome.php +++ b/actions/apitimelinehome.php @@ -38,8 +38,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apibareauth.php'; - /** * Returns the most recent notices (default 20) posted by the target user. * This is the equivalent of 'You and friends' page accessed via Web. @@ -107,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); @@ -120,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);