X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fallrss.php;h=fee52c79ab3c7301f307865c6504b12ec39d6d5e;hb=db7cc7fa7553e0be302d518360648940756f131c;hp=6d82e551e7cd6fa73395dce2281d3933168ad260;hpb=4d61760154a53e39d1e0499d5fe7a4a586e7a9f0;p=quix0rs-gnu-social.git diff --git a/actions/allrss.php b/actions/allrss.php index 6d82e551e7..fee52c79ab 100644 --- a/actions/allrss.php +++ b/actions/allrss.php @@ -62,12 +62,11 @@ class AllrssAction 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 when user not found for an rss related action. $this->clientError(_('No such user.')); - return false; } else { $this->notices = $this->getNotices($this->limit); return true; @@ -83,7 +82,7 @@ class AllrssAction extends Rss10Action */ function getNotices($limit=0) { - $stream = new InboxNoticeStream($this->user); + $stream = new InboxNoticeStream($this->user->getProfile()); $notice = $stream->getNotices(0, $limit, null, null); $notices = array(); @@ -129,7 +128,6 @@ class AllrssAction extends Rss10Action if (!$profile) { return null; } - $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); - return $avatar ? $avatar->url : null; + return $profile->avatarUrl(AVATAR_PROFILE_SIZE); } }