]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/noticesearchrss.php
Merge remote-tracking branch 'upstream/master' into social-master
[quix0rs-gnu-social.git] / actions / noticesearchrss.php
index 14c280f62cfd3f973f5c64703ce0734b16949c6c..f52d69dfdfd0f992895697801d89d933ed7e075c 100644 (file)
@@ -53,7 +53,7 @@ class NoticesearchrssAction extends Rss10Action
         return true;
     }
 
-    function prepare($args)
+    function prepare(array $args=array())
     {
         parent::prepare($args);
         $this->notices = $this->getNotices();
@@ -80,7 +80,11 @@ class NoticesearchrssAction extends Rss10Action
 
         if ($cnt > 0) {
             while ($notice->fetch()) {
-                $notices[] = clone($notice);
+                // Check scope of notice to current profile (including guests)
+                if ($notice->isCurrentProfileInScope()) {
+                    // Is in scope
+                    $notices[] = clone($notice);
+                }
             }
         }
 
@@ -106,7 +110,7 @@ class NoticesearchrssAction extends Rss10Action
         return null;
     }
 
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }