]> git.wh0rd.org - tt-rss.git/commitdiff
implement catchup for labels vfeed
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 12 Feb 2009 12:01:42 +0000 (15:01 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 12 Feb 2009 12:01:42 +0000 (15:01 +0300)
functions.php

index 6e386c508082dbbc2d7b6859542f6dbd89c2c9a5..50a4d607b17c90e3cb44580f593bbb14afabb034 100644 (file)
                                                }
                                        } 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) {