1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:45:56 +00:00

update ttrss_feeds.last_viewed on viewfeed

This commit is contained in:
Andrew Dolgov
2007-11-22 06:52:48 +01:00
parent ebda016b58
commit 7466dc6a62

View File

@@ -219,6 +219,11 @@
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,