remove the old keys, if they are still stored

This commit is contained in:
El RIDO 2024-05-01 20:32:39 +02:00
parent a9f1926b96
commit b2db26998d
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
2 changed files with 8 additions and 2 deletions

View file

@ -47,6 +47,12 @@ class Paste extends AbstractModel
$data['meta']['time_to_live'] = $data['meta']['expire_date'] - time();
unset($data['meta']['expire_date']);
}
if (array_key_exists('created', $data['meta'])) {
unset($data['meta']['created']);
}
if (array_key_exists('postdate', $data['meta'])) {
unset($data['meta']['postdate']);
}
// check if non-expired burn after reading paste needs to be deleted
if (