1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-06 01:39:16 +00:00

change various catchup stuff to only affect unread articles

This commit is contained in:
Andrew Dolgov
2013-02-26 22:49:46 +04:00
parent be17885789
commit 1bad74ea7c
2 changed files with 9 additions and 7 deletions

View File

@@ -745,7 +745,7 @@ class Feeds extends Handler_Protected {
function catchupAll() {
db_query($this->link, "UPDATE ttrss_user_entries SET
last_read = NOW(),unread = false WHERE owner_uid = " . $_SESSION["uid"]);
last_read = NOW(), unread = false WHERE unread = true AND owner_uid = " . $_SESSION["uid"]);
ccache_zero_all($this->link, $_SESSION["uid"]);
}