From: Andrew Dolgov Date: Sat, 27 Nov 2010 09:22:28 +0000 (+0300) Subject: limit fresh feed to articles with non-negative score X-Git-Tag: 1.5.0~32 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=cd2cc43dfe20731af02791a12be9fc4a32948656;p=tt-rss.git limit fresh feed to articles with non-negative score --- diff --git a/functions.php b/functions.php index f82f5dcd..4a0213d8 100644 --- a/functions.php +++ b/functions.php @@ -2601,7 +2601,7 @@ } 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); @@ -3394,7 +3394,7 @@ } } 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);