From: Andrew Dolgov Date: Thu, 12 Feb 2009 12:01:42 +0000 (+0300) Subject: implement catchup for labels vfeed X-Git-Tag: 1.3.1~29 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6f69764ccff1c231ebfa3e4cbd32465f34c96d02;p=tt-rss.git implement catchup for labels vfeed --- diff --git a/functions.php b/functions.php index 6e386c50..50a4d607 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) {