Preserve file-only content when archiving.
This commit is contained in:
1 parent
1c04087471
commit
89a07c885a
14 files changed
+219
-52
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user