Commit d58ea11
committed
Set public_until instead of clearing public_on when unpublishing elements
Previously, setting `public = false` on an element cleared its `public_on`
timestamp, turning it into a draft. Now it sets `public_until` to the current
time, preserving the publication history while marking the element as expired.
Setting `public = true` now also always refreshes `public_on` and clears any
`public_until` value.
(cherry picked from commit 73a290c)1 parent 1dfaea1 commit d58ea11
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
| 238 | + | |
238 | 239 | | |
239 | | - | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments