diff options
author | Andrew Dolgov <[email protected]> | 2010-11-27 12:22:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-27 12:22:34 +0300 |
commit | cd2cc43dfe20731af02791a12be9fc4a32948656 (patch) | |
tree | ef013baee6d4a7c4e2d52f7fae7bd236a033130d /functions.php | |
parent | 36146ae5036f9a2dae13335b7b4593e7c5fca127 (diff) |
limit fresh feed to articles with non-negative score
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
1 files 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); |