catchup_feed: only mark articles as read with non-negative score in fresh feed

This commit is contained in:
Andrew Dolgov 2014-06-10 11:39:17 +04:00
parent 78744d48d7
commit 1fa5c5409d
1 changed files with 1 additions and 1 deletions

View File

@ -1203,7 +1203,7 @@
SET unread = false, last_read = NOW() WHERE ref_id IN SET unread = false, last_read = NOW() WHERE ref_id IN
(SELECT id FROM (SELECT id FROM
(SELECT id FROM ttrss_entries, ttrss_user_entries WHERE ref_id = id (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) { if ($feed == -4) {