From 338c238d9313a9d889fbad6042261dc8ec1e60ab Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 12 Feb 2009 15:04:05 +0300 Subject: [PATCH] catchup_feed: set article last_read when catching up a label --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); } -- 2.39.5