mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-08-07 07:14:49 +00:00
cad31957c3
Previously, the cleanup algorithm let to data-loss as it could delete the only remaining revision of a note when it was older than the retention period. The new cleanup algorithm strictly differentiates between cases where only one revision exists at all, where multiple revisions exists older than the retention period but no newer one (compacting them properly) as well as where both revisions older than the retention period and ones newer than that period exist (cleaning up the old ones). This should prevent data loss by clean ups. Signed-off-by: Erik Michelson <github@erik.michelson.eu>