mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-07 14:02:29 -04:00
changing paste read output for API refactoring
This commit is contained in:
parent
b92b38cee8
commit
f21567133c
7 changed files with 74 additions and 36 deletions
|
@ -52,6 +52,10 @@ class model_paste extends model_abstract
|
|||
$this->_data->meta->formatter = $this->_conf->getKey('defaultformatter');
|
||||
}
|
||||
}
|
||||
$this->_data->comments = array_values($this->getComments());
|
||||
$this->_data->comment_count = count($this->_data->comments);
|
||||
$this->_data->comment_offset = 0;
|
||||
$this->_data->{'@context'} = 'js/paste.jsonld';
|
||||
return $this->_data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue