summaryrefslogtreecommitdiffstats
path: root/controller
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-27 13:47:53 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-27 13:47:53 +0100
commit78674ebc36cf9d24309799651c09a7e194d15ea4 (patch)
tree6cf02edf94e6dee0d7c0f05b3d817fc6f96ecf74 /controller
parent003ab9ca77a2df654bdd152a29f9cf8071d55b68 (diff)
star by guid hash and feedid to also star an item if it has been updated in the meantime. read still only works on the current version of the item, that means if an item is updated on the server side and an older version is being read on the server it will not be marked as read
Diffstat (limited to 'controller')
-rw-r--r--controller/itemcontroller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/controller/itemcontroller.php b/controller/itemcontroller.php
index 2c00fb1bd..2a8aa6725 100644
--- a/controller/itemcontroller.php
+++ b/controller/itemcontroller.php
@@ -95,9 +95,10 @@ class ItemController extends Controller {
private function setStarred($isStarred){
$userId = $this->api->getUserId();
- $itemId = (int) $this->params('itemId');
+ $feedId = (int) $this->params('feedId');
+ $guidHash = $this->params('guidHash');
- $this->itemBl->star($itemId, $isStarred, $userId);
+ $this->itemBl->star($feedId, $guidHash, $isStarred, $userId);
}
/**