Preserve file-only content when archiving.

This commit is contained in:
2026-07-21 22:04:03 +02:00
parent 1c04087471
commit 89a07c885a
14 changed files with 219 additions and 52 deletions

View File

@@ -237,6 +237,9 @@ rule ArchivePost {
when: ArchivePostRequested(post)
requires: post.status = draft or post.status = published
ensures: post.status = archived
-- Archiving changes only status and updatedAt. A published post keeps its
-- body solely in the existing file: content remains null and the file is
-- not rewritten.
}
rule UnarchivePost {