+if (!defined('STATUSNET') && !defined('LACONICA')) {
+ exit(1);
+}
+
+require_once INSTALLDIR.'/lib/rssaction.php';
+
+/**
+ * RSS feed for notice search action class.
+ *
+ * Formatting of RSS handled by Rss10Action
+ *
+ * @category Action
+ * @package StatusNet
+ * @author Evan Prodromou <evan@status.net>
+ * @author Robin Millette <millette@status.net>
+ * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
+ * @link http://status.net/
+ */
+class NoticesearchrssAction extends Rss10Action
+{
+ function init()
+ {
+ return true;
+ }
+
+ function prepare(array $args=array())
+ {
+ parent::prepare($args);
+ $this->notices = $this->getNotices();
+ return true;
+ }
+
+ function getNotices($limit=0)
+ {
+ $q = $this->trimmed('q');
+ $notices = array();