From 1618a84955bb15f1692880d30075e4bda207fb39 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 May 2008 03:34:49 +0100 Subject: [PATCH] mark articles with score less than -500 as read on rescore --- modules/pref-feeds.php | 4 ++++ 1 file changed, 4 insertions(+) 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]) . ")"); -- 2.39.5