catchup_feed: set article last_read when catching up a label

This commit is contained in:
Andrew Dolgov 2009-02-12 15:04:05 +03:00
parent 6f69764ccf
commit 338c238d93
1 changed files with 2 additions and 1 deletions

View File

@ -2228,7 +2228,8 @@
$label_id = -$feed - 11; $label_id = -$feed - 11;
db_query($link, "UPDATE ttrss_user_entries, ttrss_user_labels2 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"); AND owner_uid = '".$_SESSION["uid"]."' AND ref_id = article_id");
} }