]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/userrss.php
Ticket #1196 - Fixed: Warning on invite tab in Facebook App
[quix0rs-gnu-social.git] / actions / userrss.php
index 04855cccaded30a05ac67a0789647aae8b7e882f..5861d9ee3687bd7a4e79e6088ea30a059c690a2b 100644 (file)
@@ -46,13 +46,14 @@ class UserrssAction extends Rss10Action
     {
 
         $user = $this->user;
-        
+
         if (is_null($user)) {
             return null;
         }
-        
+
         $notice = $user->getNotices(0, ($limit == 0) ? NOTICES_PER_PAGE : $limit);
-        
+
+        $notices = array();
         while ($notice->fetch()) {
             $notices[] = clone($notice);
         }
@@ -87,17 +88,16 @@ class UserrssAction extends Rss10Action
     }
 
     # override parent to add X-SUP-ID URL
-    
+
     function initRss($limit=0)
     {
-        $url = common_local_url('sup', null, $this->user->id);
+        $url = common_local_url('sup', null, null, $this->user->id);
         header('X-SUP-ID: '.$url);
         parent::initRss($limit);
     }
 
-    function isReadOnly()
+    function isReadOnly($args)
     {
         return true;
     }
 }
-