From feefb08a85c134804873e7bbbe94a321668a1c70 Mon Sep 17 00:00:00 2001 From: interlope Date: Mon, 8 Jun 2026 20:02:17 +0200 Subject: [PATCH] Fix auto-export logic: Update draft status check to use 'type' instead of 'status' for correct functionality. --- plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.php b/plugin.php index 3feba5d..3f12d8f 100644 --- a/plugin.php +++ b/plugin.php @@ -96,7 +96,7 @@ class pluginBluditGithub extends Plugin return; } $page = new Page($key); - $isDraft = $page->getValue('status') === 'draft'; + $isDraft = $page->getValue('type') === 'draft'; $shouldAutoExport = $isDraft ? $this->getValue('exportDraftsAuto') : $this->getValue('exportPublishedAuto'); if ($shouldAutoExport) { @@ -114,7 +114,7 @@ class pluginBluditGithub extends Plugin return; } $page = new Page($key); - $isDraft = $page->getValue('status') === 'draft'; + $isDraft = $page->getValue('type') === 'draft'; $shouldAutoExport = $isDraft ? $this->getValue('exportDraftsAuto') : $this->getValue('exportPublishedAuto'); if ($shouldAutoExport) {