summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-21 10:16:25 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-21 10:16:25 +0200
commite6dc8053bfb94063268fa56404ff076208dc6dc2 (patch)
treec54e079e2ec89e01a11fb0460c332198789213b9 /commands
parent2637b4ef4dbb3f8d3e537f900bdd072b4078c87e (diff)
commands: Fix build logic when listing expired/future draft content
Fixes #10972
Diffstat (limited to 'commands')
-rw-r--r--commands/list.go16
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{