]> git.wh0rd.org Git - tt-rss.git/commitdiff
mark articles with score less than -500 as read on rescore
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 02:34:49 +0000 (03:34 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 02:34:49 +0000 (03:34 +0100)
modules/pref-feeds.php

index e6689e8247455e12f221fbcb30a9ef0a4735e63d..86da84bb445edfbc1bfac55fc0e0ccdc071b366d 100644 (file)
                                                db_query($link, "UPDATE ttrss_user_entries SET score = '$s', 
                                                        marked = true WHERE
                                                        ref_id IN (" . join(',', $scores[$s]) . ")");
+                                       } else if ($s < -500) {
+                                               db_query($link, "UPDATE ttrss_user_entries SET score = '$s', 
+                                                       unread = false WHERE
+                                                       ref_id IN (" . join(',', $scores[$s]) . ")");
                                        } else {
                                                db_query($link, "UPDATE ttrss_user_entries SET score = '$s' WHERE
                                                        ref_id IN (" . join(',', $scores[$s]) . ")");