]> git.wh0rd.org - tt-rss.git/commitdiff
limit fresh feed to articles with non-negative score
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 27 Nov 2010 09:22:28 +0000 (12:22 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 27 Nov 2010 09:22:34 +0000 (12:22 +0300)
functions.php

index f82f5dcd694a503a1ed3df543fa1100a1bfab31b..4a0213d867185134919832bfbccc5909319bee8a 100644 (file)
                } else if ($n_feed == -2) {
                        $match_part = "published = true";
                } else if ($n_feed == -3) {
-                       $match_part = "unread = true";
+                       $match_part = "unread = true AND score >= 0";
 
                        $intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE", $owner_uid);
 
                                }
 
                        } else if ($feed == -3) { // fresh virtual feed
-                               $query_strategy_part = "unread = true";
+                               $query_strategy_part = "unread = true AND score >= 0";
 
                                $intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE", $owner_uid);