summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-11-22 06:52:48 +0100
committerAndrew Dolgov <[email protected]>2007-11-22 06:52:48 +0100
commit7466dc6a62cf03fcbc736fe7ebe8d41d5743f11b (patch)
treef7a1d92d7c6d9e136d3bda5729f80532a83cb199 /backend.php
parentebda016b58ae8a29fa86ee7e4b8766c024f48303 (diff)
update ttrss_feeds.last_viewed on viewfeed
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index d68ede30a..ea96a0e41 100644
--- a/backend.php
+++ b/backend.php
@@ -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,