X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Frepliesrss.php;h=145b51aaea99dfc58cb252c7c1210897dd773a39;hb=05006f687aa09515fba058120e0d236552062de1;hp=86cd173d3c1eab06537db003537e649b6acc56c8;hpb=0291c6f7cd07cfb6845215ab33f8a56b417c0d1c;p=quix0rs-gnu-social.git diff --git a/actions/repliesrss.php b/actions/repliesrss.php index 86cd173d3c..145b51aaea 100644 --- a/actions/repliesrss.php +++ b/actions/repliesrss.php @@ -31,12 +31,11 @@ class RepliesrssAction extends Rss10Action { parent::prepare($args); $nickname = $this->trimmed('nickname'); - $this->user = User::staticGet('nickname', $nickname); + $this->user = User::getKV('nickname', $nickname); 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; @@ -78,13 +77,8 @@ class RepliesrssAction extends Rss10Action 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)