]> git.wh0rd.org Git - tt-rss.git/commitdiff
update ttrss_feeds.last_viewed on viewfeed
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 22 Nov 2007 05:52:48 +0000 (06:52 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 22 Nov 2007 05:52:48 +0000 (06:52 +0100)
backend.php

index d68ede30a9817fa96664d14f2f32cd064a7df79f..ea96a0e41207ce55f326e5398f643006ecc4c02e 100644 (file)
                set_pref($link, "_DEFAULT_VIEW_MODE", $view_mode);
                set_pref($link, "_DEFAULT_VIEW_LIMIT", $limit);
 
+               if (!$cat_view && preg_match("/^[0-9][0-9]*$/", $feed)) {
+                       db_query($link, "UPDATE ttrss_feeds SET last_viewed = NOW()
+                               WHERE id = '$feed' AND owner_uid = ".$_SESSION["uid"]);
+               }
+
                print "<headlines id=\"$feed\"><![CDATA[";
 
                $ret = outputHeadlinesList($link, $feed, $subop,