mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -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['code'] = $this->input->post('text');
|
||||
|
||||
if ($this->config->item('private_only'))
|
||||
{
|
||||
$_POST['private'] = 1;
|
||||
}
|
||||
$paste_url = $this->pastes->createPaste();
|
||||
$data['msg'] = base_url() . $paste_url;
|
||||
$this->load->view('view/api', $data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user