]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/allrss.php
make it possible to erase fields in the profile via the api
[quix0rs-gnu-social.git] / actions / allrss.php
index 3db19ffdcce54e0e615a828ef8e80d0b73960d1c..fee52c79ab3c7301f307865c6504b12ec39d6d5e 100644 (file)
@@ -67,7 +67,6 @@ class AllrssAction extends Rss10Action
         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();