From: Andrew Dolgov Date: Tue, 10 Jun 2014 07:39:17 +0000 (+0400) Subject: catchup_feed: only mark articles as read with non-negative score in fresh feed X-Git-Tag: 1.13~16 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=1fa5c5409ddd36c1ceac6eb8bfcb19f35f89662e catchup_feed: only mark articles as read with non-negative score in fresh feed --- diff --git a/include/functions.php b/include/functions.php index 344e3e1e..b5d52ccb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1203,7 +1203,7 @@ SET unread = false, last_read = NOW() WHERE ref_id IN (SELECT id FROM (SELECT id FROM ttrss_entries, ttrss_user_entries WHERE ref_id = id - AND owner_uid = $owner_uid AND unread = true AND $date_qpart AND $match_part) as tmp)"); + AND owner_uid = $owner_uid AND score >= 0 AND unread = true AND $date_qpart AND $match_part) as tmp)"); } if ($feed == -4) {