CategoryController::follow PHP Method

follow() public method

public follow ( $CategoryID, $Value, $TKey )
    public function follow($CategoryID, $Value, $TKey)
    {
        if (Gdn::session()->validateTransientKey($TKey)) {
            $this->CategoryModel->SaveUserTree($CategoryID, array('Unfollow' => (int) (!(bool) $Value)));
        }
        if ($this->deliveryType() == DELIVERY_TYPE_ALL) {
            redirect('/categories');
        }
        $this->render();
    }