From: Andrew Dolgov Date: Thu, 12 Feb 2009 12:04:05 +0000 (+0300) Subject: catchup_feed: set article last_read when catching up a label X-Git-Tag: 1.3.1~28 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=338c238d9313a9d889fbad6042261dc8ec1e60ab;p=tt-rss.git catchup_feed: set article last_read when catching up a label --- diff --git a/functions.php b/functions.php index 50a4d607..0a2f3e53 100644 --- a/functions.php +++ b/functions.php @@ -2228,7 +2228,8 @@ $label_id = -$feed - 11; db_query($link, "UPDATE ttrss_user_entries, ttrss_user_labels2 - SET unread = false WHERE label_id = '$label_id' AND unread = true + SET unread = false, last_read = NOW() + WHERE label_id = '$label_id' AND unread = true AND owner_uid = '".$_SESSION["uid"]."' AND ref_id = article_id"); }