/** * Unfollow this collection * * @param integer $follower_id ID of the follower * @param string $follower_type Type of the follower [member, group] * @return boolean */ public function unfollow($id, $what = 'collection', $follower_id = 0, $follower_type = 'member') { $follow = new Following($id, $what, $follower_id, $follower_type); if (!$follow->exists()) { $this->setError(Lang::txt('Item is not being followed')); return true; } if (!$follow->delete()) { $this->setError($follow->getError()); return false; } return true; }