Files
hedgedoc/backend
Erik Michelson cad31957c3 fix(revisions): use correct cleanup algorithm
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>
2026-07-15 10:15:40 +02:00
..
2023-04-13 10:39:17 +02:00