From: Andrew Dolgov Date: Thu, 22 Nov 2007 05:52:48 +0000 (+0100) Subject: update ttrss_feeds.last_viewed on viewfeed X-Git-Tag: 1.2.18~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7466dc6a62cf03fcbc736fe7ebe8d41d5743f11b;p=tt-rss.git update ttrss_feeds.last_viewed on viewfeed --- diff --git a/backend.php b/backend.php index d68ede30..ea96a0e4 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 "