From cd2cc43dfe20731af02791a12be9fc4a32948656 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 27 Nov 2010 12:22:28 +0300 Subject: [PATCH] limit fresh feed to articles with non-negative score --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index f82f5dcd6..4a0213d86 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);