]> git.wh0rd.org Git - tt-rss.git/commitdiff
catchup_feed: only mark articles as read with non-negative score in fresh feed
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 10 Jun 2014 07:39:17 +0000 (11:39 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 10 Jun 2014 07:39:17 +0000 (11:39 +0400)
include/functions.php

index 344e3e1ea10715d8166447616d6ca58c74930dec..b5d52ccb2d25e444ae286dc53c911bccbc6faa96 100644 (file)
                                                        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) {