summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-10-12 17:54:51 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-10-12 17:54:51 +0200
commit95542f96ebf58cf48e7ca44d18a4c30724873f93 (patch)
tree5475c6dcee7bc2a8e2d490e07e01a1ca1648bec1 /ajax
parent22b1cae7624d345c6c93d3dcc66ca2cae91c9857 (diff)
removed linter errors on parseInt, added the most recent timestamp and id to the load command
Diffstat (limited to 'ajax')
-rw-r--r--ajax/loadfeed.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ajax/loadfeed.php b/ajax/loadfeed.php
index 8fc841277..2c03fc889 100644
--- a/ajax/loadfeed.php
+++ b/ajax/loadfeed.php
@@ -20,6 +20,10 @@ $userid = OCP\USER::getUser();
$feedId = $_POST['id'];
$feedType = $_POST['type'];
+$mostRecentItemId = $_POST['mostRecentItemId'];
+$mostRecentItemTimestamp = $_POST['mostRecentItemTimestamp'];
+
+
OCP\Config::setUserValue(OCP\USER::getUser(), 'news', 'lastViewedFeed', $feedId);
OCP\Config::setUserValue(OCP\USER::getUser(), 'news', 'lastViewedFeedType', $feedType);