summaryrefslogtreecommitdiffstats
path: root/controller
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-27 12:26:04 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-27 12:26:04 +0100
commit02ae36eba33a5e0957defd4619d337bfdd0c178f (patch)
treed80f58cdf9eb774d00fc5fc322bf0750b644dab2 /controller
parent89a1713f062cc78b727c6240a91408d91611dbab (diff)
fixed mark all unread serverside (was missing highestitemid, dont use lastmodified to compare for new versions but use the highest item id. if items are updated and the guidHash and feedId are the same then it will be deleted and newly inserted to make the lastmodified feasable
Diffstat (limited to 'controller')
-rw-r--r--controller/itemcontroller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/itemcontroller.php b/controller/itemcontroller.php
index 47061a14c..2c00fb1bd 100644
--- a/controller/itemcontroller.php
+++ b/controller/itemcontroller.php
@@ -163,8 +163,9 @@ class ItemController extends Controller {
public function readFeed(){
$userId = $this->api->getUserId();
$feedId = (int) $this->params('feedId');
+ $highestItemId = (int) $this->params('highestItemId');
- $this->itemBl->readFeed($feedId, $userId);
+ $this->itemBl->readFeed($feedId, $highestItemId, $userId);
}