]> git.wh0rd.org Git - tt-rss.git/commitdiff
catchup_feed: set article last_read when catching up a label
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 12 Feb 2009 12:04:05 +0000 (15:04 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 12 Feb 2009 12:04:05 +0000 (15:04 +0300)
functions.php

index 50a4d607b17c90e3cb44580f593bbb14afabb034..0a2f3e530112738ce75a97ee0441969b74d0306e 100644 (file)
                                        $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");
 
                                }