From: Andrew Dolgov Date: Sat, 17 May 2008 02:34:49 +0000 (+0100) Subject: mark articles with score less than -500 as read on rescore X-Git-Tag: 1.2.23-final~109 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1618a84955bb15f1692880d30075e4bda207fb39;p=tt-rss.git mark articles with score less than -500 as read on rescore --- diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index e6689e82..86da84bb 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -505,6 +505,10 @@ 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]) . ")");