/** * TODO Update to match new api... */ public function unfollow($data, $form) { if (!$this->securityContext->getMember()) { return Security::permissionFailure($this); } $otherID = (int) (isset($data['OtherID']) ? $data['OtherID'] : null); if ($otherID) { $other = DataObject::get_by_id('Member', $otherID); $this->microBlogService->removeFollower($other, $this->securityContext->getMember()); } $this->redirectBack(); }