private function unfollow($query, $data) { if (!OW::getUser()->isAuthenticated()) { return array('warning' => OW::getLanguage()->text('equestions', 'not_authed_unfollow_warning')); } $this->service->removeFollow(OW::getUser()->getId(), $data['questionId']); $status = array('posts' => false, 'votes' => false, 'follows' => $this->service->findFollowsCount($data['questionId'], $data['userContext'])); return array('relation' => array('call' => 'showFollow', 'status' => $status), 'status' => $status); }