From 02ae36eba33a5e0957defd4619d337bfdd0c178f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 27 Mar 2013 12:26:04 +0100 Subject: 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 --- controller/itemcontroller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'controller/itemcontroller.php') 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); } -- cgit v1.2.3