function showTimeline()
{
$profile = $this->user->getProfile();
- $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
$sitename = common_config('site', 'name');
$title = sprintf(
$profile->getBestName(),
$this->user->nickname
);
- $logo = !empty($avatar)
- ? $avatar->displayUrl()
- : Avatar::defaultImage(AVATAR_PROFILE_SIZE);
-
- $link = common_local_url(
- 'bookmarks',
- array('nickname' => $this->user->nickname)
- );
+ $logo = $profile->avatarUrl(AVATAR_PROFILE_SIZE);
+ $link = common_local_url('bookmarks',
+ array('nickname' => $this->user->nickname));
$self = $this->getSelfUri();
switch($this->format) {