mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
API respects the private flag
This commit is contained in:
parent
fbb7227772
commit
70663e5803
@ -44,6 +44,11 @@ class Api extends Main
|
|||||||
$_POST['lang'] = 'text';
|
$_POST['lang'] = 'text';
|
||||||
}
|
}
|
||||||
$_POST['code'] = $this->input->post('text');
|
$_POST['code'] = $this->input->post('text');
|
||||||
|
|
||||||
|
if ($this->config->item('private_only'))
|
||||||
|
{
|
||||||
|
$_POST['private'] = 1;
|
||||||
|
}
|
||||||
$paste_url = $this->pastes->createPaste();
|
$paste_url = $this->pastes->createPaste();
|
||||||
$data['msg'] = base_url() . $paste_url;
|
$data['msg'] = base_url() . $paste_url;
|
||||||
$this->load->view('view/api', $data);
|
$this->load->view('view/api', $data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user