diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-21 10:16:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-21 10:16:25 +0200 |
commit | e6dc8053bfb94063268fa56404ff076208dc6dc2 (patch) | |
tree | c54e079e2ec89e01a11fb0460c332198789213b9 /commands | |
parent | 2637b4ef4dbb3f8d3e537f900bdd072b4078c87e (diff) |
commands: Fix build logic when listing expired/future draft content
Fixes #10972
Diffstat (limited to 'commands')
-rw-r--r-- | commands/list.go | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/commands/list.go b/commands/list.go index 1ce45987b..05739c7a9 100644 --- a/commands/list.go +++ b/commands/list.go @@ -73,7 +73,11 @@ func newListCommand() *listCommand { p.PublishDate().Format(time.RFC3339)} } - return list(cd, r, createRecord, "buildDrafts", true) + return list(cd, r, createRecord, + "buildDrafts", true, + "buildFuture", true, + "buildExpired", true, + ) }, }, &simpleCommand{ @@ -91,7 +95,10 @@ func newListCommand() *listCommand { } } - return list(cd, r, createRecord, "buildFuture", true) + return list(cd, r, createRecord, + "buildFuture", true, + "buildDrafts", true, + ) }, }, &simpleCommand{ @@ -109,7 +116,10 @@ func newListCommand() *listCommand { } } - return list(cd, r, createRecord, "buildExpired", true) + return list(cd, r, createRecord, + "buildExpired", true, + "buildDrafts", true, + ) }, }, &simpleCommand{ |