if (!$this->user) {
// TRANS: Client error displayed when providing a non-existing nickname in a RSS 1.0 action.
$this->clientError(_('No such user.'));
- return false;
} else {
$this->notices = $this->getNotices($this->limit);
return true;
function getImage()
{
- $user = $this->user;
- $profile = $user->getProfile();
- if (!$profile) {
- return null;
- }
- $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
- return ($avatar) ? $avatar->url : null;
+ $profile = $this->user->getProfile();
+ return $profile->avatarUrl(AVATAR_PROFILE_SIZE);
}
function isReadOnly($args)