mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-10 07:20:43 -04:00
added instantburnafterreading option to address #174
This commit is contained in:
parent
ab2e789aee
commit
f54036976a
5 changed files with 42 additions and 1 deletions
|
@ -48,6 +48,11 @@ class Paste extends AbstractModel
|
|||
$data->meta->remaining_time = $data->meta->expire_date - time();
|
||||
}
|
||||
|
||||
// check if non-expired burn after reading paste needs to be deleted
|
||||
if (property_exists($data->meta, 'burnafterreading') && $data->meta->burnafterreading && $this->_conf->getKey('instantburnafterreading')) {
|
||||
$this->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