mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-06-05 05:31:44 -04:00
Adjust requested changes
This commit is contained in:
parent
073b52ce96
commit
9b6748c54d
5 changed files with 9 additions and 9 deletions
|
@ -48,6 +48,11 @@ class Paste extends AbstractModel
|
|||
$data->meta->remaining_time = $data->meta->expire_date - time();
|
||||
}
|
||||
|
||||
// If the paste was meant to be read only once, delete it.
|
||||
if ($paste->isBurnafterreading()) {
|
||||
$paste->delete();
|
||||
}
|
||||
|
||||
// set formatter for for the view.
|
||||
if (!property_exists($data->meta, 'formatter')) {
|
||||
// support < 0.21 syntax highlighting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue