]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/allrss.php
Completely refactored noticesearch list, now using subclassing for highlighting....
[quix0rs-gnu-social.git] / actions / allrss.php
index bacb343ce089954417e4af6da52f78d895107f6c..0114c43962ad312075337ef347010fada0c25a1b 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * Public RSS action class.
+ * RSS feed for user and friends timeline action class.
  *
  * PHP version 5
  *
@@ -49,16 +49,18 @@ require_once INSTALLDIR.'/lib/rssaction.php';
  */
 class AllrssAction extends Rss10Action
 {
-
     var $user = null;
 
     /**
      * Initialization.
-     * 
+     *
+     * @param array $args Web and URL arguments
+     *
      * @return boolean false if user doesn't exist
      */
-    function init()
+    function prepare($args)
     {
+        parent::prepare($args);
         $nickname   = $this->trimmed('nickname');
         $this->user = User::staticGet('nickname', $nickname);
 
@@ -81,7 +83,7 @@ class AllrssAction extends Rss10Action
     {
         $user   = $this->user;
         $notice = $user->noticesWithFriends(0, $limit);
-                                            
+
         while ($notice->fetch()) {
             $notices[] = clone($notice);
         }
@@ -104,7 +106,8 @@ class AllrssAction extends Rss10Action
                    'link' => common_local_url('all',
                                              array('nickname' =>
                                                    $user->nickname)),
-                   'description' => sprintf(_('Feed for friends of %s'), $user->nickname));
+                   'description' => sprintf(_('Feed for friends of %s'),
+                                            $user->nickname));
         return $c;
     }