summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-12 15:01:42 +0300
committerAndrew Dolgov <[email protected]>2009-02-12 15:01:42 +0300
commit6f69764ccff1c231ebfa3e4cbd32465f34c96d02 (patch)
tree8c9a185085206d42a23bdb2f44f303e9eefb8e01
parent9c0562454b4a8dafab0e2b824994dcac88bf2aa0 (diff)
implement catchup for labels vfeed
-rw-r--r--functions.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 6e386c508..50a4d607b 100644
--- a/functions.php
+++ b/functions.php
@@ -2144,7 +2144,11 @@
}
} else if ($feed == -2) {
- /* FIXME catchup for all labels vfeed */
+
+ db_query($link, "UPDATE ttrss_user_entries
+ SET unread = false,last_read = NOW() WHERE (SELECT COUNT(*)
+ FROM ttrss_user_labels2 WHERE article_id = ref_id) > 0
+ AND unread = true AND owner_uid = " . $_SESSION["uid"]);
}
} else if ($feed > 0) {