summaryrefslogtreecommitdiffstats
path: root/external/itemapi.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-09 12:57:35 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-09 12:57:35 +0200
commitb8b4dfb4969e1baf84a14fb65a5dc153b0f5fae4 (patch)
tree27e211e26f442efd72a7f34903953ad57b1a9b76 /external/itemapi.php
parentfe0de2ab84a88cb4c742f4f10fd43716934b7282 (diff)
only make one request for mark all read and mark folder read, fix #171, fix a bug that prevented readding of feeds when its folder was deleted, fix a bug that would not allow mark read for feeds when the app was started for the first time
Diffstat (limited to 'external/itemapi.php')
-rw-r--r--external/itemapi.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/external/itemapi.php b/external/itemapi.php
index 9699b4371..2ba1fcaed 100644
--- a/external/itemapi.php
+++ b/external/itemapi.php
@@ -147,4 +147,13 @@ class ItemAPI extends Controller {
}
+ public function readAll() {
+ $userId = $this->api->getUserId();
+ $newestItemId = (int) $this->params('newestItemId');
+
+ $this->itemBusinessLayer->readAll($newestItemId, $userId);
+ return new NewsAPIResult();
+ }
+
+
}