]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/repliesrss.php
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into...
[quix0rs-gnu-social.git] / actions / repliesrss.php
index 19ab0866a3bb4b2d2a388d0ef9786cfed84814bd..2017c43094a5f40f176d48efb3c3ff4601aba8c0 100644 (file)
@@ -23,24 +23,26 @@ require_once(INSTALLDIR.'/lib/rssaction.php');
 
 // Formatting of RSS handled by Rss10Action
 
-class RepliesrssAction extends Rss10Action {
+class RepliesrssAction extends Rss10Action
+{
 
     var $user = null;
 
-    function init()
+    function prepare($args)
     {
+        parent::prepare($args);
         $nickname = $this->trimmed('nickname');
         $this->user = User::staticGet('nickname', $nickname);
 
         if (!$this->user) {
-            common_user_error(_('No such user.'));
+            $this->clientError(_('No such user.'));
             return false;
         } else {
             return true;
         }
     }
 
-    function get_notices($limit=0)
+    function getNotices($limit=0)
     {
 
         $user = $this->user;
@@ -56,7 +58,7 @@ class RepliesrssAction extends Rss10Action {
         return $notices;
     }
 
-    function get_channel()
+    function getChannel()
     {
         $user = $this->user;
         $c = array('url' => common_local_url('repliesrss',
@@ -70,7 +72,7 @@ class RepliesrssAction extends Rss10Action {
         return $c;
     }
 
-    function get_image()
+    function getImage()
     {
         $user = $this->user;
         $profile = $user->getProfile();
@@ -80,4 +82,9 @@ class RepliesrssAction extends Rss10Action {
         $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
         return ($avatar) ? $avatar->url : null;
     }
-}
\ No newline at end of file
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+}