mark articles with score less than -500 as read on rescore

This commit is contained in:
Andrew Dolgov 2008-05-17 03:34:49 +01:00
parent 24605713bb
commit 1618a84955
1 changed files with 4 additions and 0 deletions

View File

@ -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]) . ")");