<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>selfoss support forum - Feature Request: Filter for rss</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Feature Request: Filter for rss (reply)</title>
<content:encoded><![CDATA[<p>Hi,</p>
<p>I did the same yesterday for my selfoss instance.</p>
<p>Here is the change I did  and then, you can reach the url like these examples:</p>
<p>http:/selfoss.domain/rss?search=search+string<br />
http:/selfoss.domain/rss?tag=My-tag</p>
<p>and you can also add some other parameters (the same as the Rss):<br />
&amp;type=unread<br />
and so on...</p>
<p>I'm very new to selfoss and I'm not a programmer but I guess my update looks very easy:</p>
<p><span style="font-size:smaller;">git diff controllers/Rss.php<br />
diff --git a/controllers/Rss.php b/controllers/Rss.php<br />
index 6e15c62..818d360 100644<br />
--- a/controllers/Rss.php<br />
+++ b/controllers/Rss.php<br />
@@ -32,13 +32,22 @@ class Rss extends BaseController {<br />
         $options = array();<br />
         if(count($_GET)&gt;0)<br />
             $options = $_GET;<br />
-        $options['items'] = \F3::get('rss_max_items');<br />
-        if(\F3::get('PARAMS[&quot;tag&quot;]')!=null)<br />
-            $options['tag'] = \F3::get('PARAMS[&quot;tag&quot;]');<br />
-        if(\F3::get('PARAMS[&quot;type&quot;]')!=null)<br />
-            $options['type'] = \F3::get('PARAMS[&quot;type&quot;]');<br />
-            <br />
-        <br />
+<br />
+        $options['items'] = isset($_GET['items']) ? $_GET['items'] : \F3::get('rss_max_items');<br />
+       if( isset($_GET['tag']) ) {<br />
+               $options['tag'] = $_GET['tag'];<br />
+       } else if( !is_null(\F3::get('PARAMS[&quot;tag&quot;]')) ) {<br />
+               $options['tag'] = \F3::get('PARAMS[&quot;tag&quot;]');<br />
+       }<br />
+       if( isset($_GET['type']) ) {<br />
+               $options['type'] = $_GET['type'];<br />
+       } else if( !is_null(\F3::get('PARAMS[&quot;type&quot;]')) ) {<br />
+               $options['type'] = \F3::get('PARAMS[&quot;type&quot;]');<br />
+       }<br />
+       if( isset($_GET['search']) ) {<br />
+               $options['search'] = $_GET['search'];<br />
+       }<br />
+<br />
         // get items</span></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=516</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=516</guid>
<pubDate>Sat, 08 Jun 2013 11:59:24 +0000</pubDate>
<dc:creator>mathcoll</dc:creator>
</item>
<item>
<title>Feature Request: Filter for rss</title>
<content:encoded><![CDATA[<p>In rsslounge it was possible to add a filter to my rss feeds. Could you please add them to selfoss?</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=506</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=506</guid>
<pubDate>Tue, 04 Jun 2013 13:32:23 +0000</pubDate>
<dc:creator>Imho</dc:creator>
</item>
</channel>
</rss>
