diff options
Diffstat (limited to 'bl/itembl.php')
-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(); } |