diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-27 13:47:53 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-27 13:47:53 +0100 |
commit | 78674ebc36cf9d24309799651c09a7e194d15ea4 (patch) | |
tree | 6cf02edf94e6dee0d7c0f05b3d817fc6f96ecf74 /bl | |
parent | 003ab9ca77a2df654bdd152a29f9cf8071d55b68 (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 'bl')
-rw-r--r-- | bl/itembl.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bl/itembl.php b/bl/itembl.php index 3c8649201..ee87d373a 100644 --- a/bl/itembl.php +++ b/bl/itembl.php @@ -90,10 +90,11 @@ class ItemBl extends Bl { } - public function star($itemId, $isStarred, $userId){ - $item = $this->find($itemId, $userId); + public function star($feedId, $guidHash, $isStarred, $userId){ + // FIXME: this can throw two possible exceptions + $item = $this->mapper->findByGuidHash($feedId, $guidHash, $userId); if($isStarred){ - $item->setStarred(); + $item->setStarred(); } else { $item->setUnstarred(); } |