From ef0c84ebdee291b79d9cbbb6f40182ce966c2e96 Mon Sep 17 00:00:00 2001 From: Joshua Blum Date: Thu, 16 Feb 2023 20:20:53 +0100 Subject: [PATCH] Check for status instead of published bool --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.php b/src/Generator.php index 59e47fd..d886971 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -104,7 +104,7 @@ protected function publishedEntries(?array $entryTypes = null): \Illuminate\Supp return false; } - return $entry->published(); + return $entry->status() === 'published'; }); }